Browse Source

Fix PHP warnings

Julio 8 years ago
parent
commit
4e2f3284eb
2 changed files with 435 additions and 449 deletions
  1. 434 448
      main/exercice/export/scorm/scorm_classes.php
  2. 1 1
      main/newscorm/learnpath.class.php

File diff suppressed because it is too large
+ 434 - 448
main/exercice/export/scorm/scorm_classes.php


+ 1 - 1
main/newscorm/learnpath.class.php

@@ -2779,7 +2779,7 @@ class learnpath
                 }
             }
             $subchildren = $item_temp->childNodes;
-            if ($subchildren->length > 0) {
+            if ($subchildren && $subchildren->length > 0) {
                 $val = $this->get_scorm_xml_node($subchildren, $id);
                 if (is_object($val)) {
 

Some files were not shown because too many files changed in this diff