|
@@ -6,6 +6,8 @@
|
|
|
* It provides a link to the iAssign general configurations area ('pluginname').
|
|
|
*
|
|
|
* Release Notes:
|
|
|
+ * - v 1.9.3 2020/08/03
|
|
|
+ * + Debug security added into "else if ($action == 'config')": if (!isset($ilm) || !$ilm) return;
|
|
|
* - v 1.9.2 2020/02/15
|
|
|
* + Fixed 2 problems inside 'if ($ilm_parent)': 1. Error: '+' -> '.'; 2. Changed 'if (is_object($ilm_parent)) if (is_object($ilm_parent->description))'
|
|
|
* to '$current_language = current_language(); $description_obj = iassign_language::get_description_lang(...);... $str_description = $description_obj;'
|
|
@@ -225,6 +227,8 @@ else if ($action == 'config') { // Administration > plugins > iAssign : after se
|
|
|
|
|
|
$ilm = $DB->get_record('iassign_ilm', array('id' => $ilm_id));
|
|
|
|
|
|
+ if (!isset($ilm) || !$ilm) return; // debug security...
|
|
|
+
|
|
|
$iassign_ilm_parent = $DB->get_records_sql(
|
|
|
'SELECT s.* FROM {iassign_ilm} s WHERE s.parent = :parent ORDER BY s.version DESC', array('parent' => $ilm->id));
|
|
|
array_unshift($iassign_ilm_parent, $ilm);
|