Merge branch 'MDL-38756-m' of git://github.com/andrewnicols/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 3 Apr 2013 19:59:18 +0000 (21:59 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 3 Apr 2013 19:59:18 +0000 (21:59 +0200)
lib/outputrequirementslib.php

index f7577d9..fec2987 100644 (file)
@@ -1618,7 +1618,7 @@ class YUI_config {
         }
 
         $cache = cache::make('core', 'yuimodules');
-        if ($CFG->jsrev == -1) {
+        if (!isset($CFG->jsrev) || $CFG->jsrev == -1) {
             $metadata = array();
             $cache->delete('metadata');
         } else {