navigation MDL-24216 Tweaked the navigation clear cache method to remove all navigati...
authorSam Hemelryk <sam@moodle.com>
Wed, 15 Sep 2010 08:32:15 +0000 (08:32 +0000)
committerSam Hemelryk <sam@moodle.com>
Wed, 15 Sep 2010 08:32:15 +0000 (08:32 +0000)
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;
         }
     }
 }