navigation MDL-24216 Tweaked the navigation clear cache method to remove all navigati...
[moodle.git] / lib / navigationlib.php
index 4468110..c949e24 100644 (file)
@@ -3905,6 +3905,8 @@ class navigation_cache {
             foreach (self::$volatilecaches as $area) {
                 $SESSION->navcache->{$area} = array();
             }
+        } else {
+            $SESSION->navcache = new stdClass;
         }
     }
 }