Browse Source

Update 'settings_form.php'

Fixed missing 's' in old line 150, now: if ($filejars!='')
leo 3 years ago
parent
commit
08f9bf0327
1 changed files with 6 additions and 2 deletions
  1. 6 2
      settings_form.php

+ 6 - 2
settings_form.php

@@ -7,6 +7,8 @@
  * then by 'ilm_handlers/(html5 or java).php' with copy_new_version_ilm($param, $files_extract)'
  * 
  * Release Notes:
+ * - v 1.6.3 2020/04/28
+ *   + Fixed detail: undefinde variable 'if ($filejars!='')' - it was '$filejar'
  * - v 1.6.2 2020/01/20
  *   + Avoid presence of ' and " in DB to close string to put JavaScript (avoid error)
  * - v 1.6.1 2017/12/02
@@ -146,9 +148,11 @@ class mod_ilm_form extends moodleform {
       var tmp = fullfilejar.split('/');
       var filejar = tmp[tmp.length-1];
 
-      var filejars = new Array(";
-      if ($filejar!='')
+      var filejars = new Array("; // close for JavaScript code
+
+      if ($filejars!='')
         $code_javascript .= addslashes($filejars) . "');" . chr(13); // if the name has ' it implies close JavaScript string => error!
+
       $code_javascript .= "
       for (i=0;i<filejars.length;i++) {
         if (filejars[i].toLowerCase()==filejar.toLowerCase()) {