Browse Source

Fixing PHP warning.

Julio Montoya 11 years ago
parent
commit
d0c5fafba5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/newscorm/learnpath.class.php

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

@@ -2199,7 +2199,7 @@ class learnpath
         $itemInfo = api_get_item_property_info($course['real_id'], TOOL_LEARNPATH, $lp_id, $sessionId);
 
         // If the item was deleted.
-        if ($itemInfo['visibility'] == 2) {
+        if (isset($itemInfo['visibility']) && $itemInfo['visibility'] == 2) {
             return false;
         }