MDL-23156 incorrect itemid test in legacy browser
authorPetr Skoda <skodak@moodle.org>
Fri, 9 Jul 2010 08:13:23 +0000 (08:13 +0000)
committerPetr Skoda <skodak@moodle.org>
Fri, 9 Jul 2010 08:13:23 +0000 (08:13 +0000)
lib/filebrowser/file_info_context_course.php

index b2e08d1..fe8e834 100644 (file)
@@ -141,7 +141,7 @@ class file_info_context_course extends file_info {
             // bad luck, legacy course files not used any more
         }
 
-        if (empty($itemid)) {
+        if (is_null($itemid)) {
             return $this;
         }