]> git.mjollnir.org Git - moodle.git/commitdiff
fixed warning with undefined rcache during install
authorskodak <skodak>
Tue, 30 Jan 2007 09:11:19 +0000 (09:11 +0000)
committerskodak <skodak>
Tue, 30 Jan 2007 09:11:19 +0000 (09:11 +0000)
lib/dmllib.php

index 51b29f2409977ed6987be89dd03f6a393d4e1c75..15c4d91fc7bc51e00252b920d7a903278ad625d2 100644 (file)
@@ -400,7 +400,7 @@ function get_record($table, $field1, $value1, $field2='', $value2='', $field3=''
     
     // Check to see whether this record is eligible for caching (fields=*, only condition is id)
     $docache = false;
-    if ($CFG->rcache === true && $field1=='id' && !$field2 && !$field3 && $fields=='*') {
+    if (!empty($CFG->rcache) && $CFG->rcache === true && $field1=='id' && !$field2 && !$field3 && $fields=='*') {
         $docache = true;
         // If it's in the cache, return it
         $cached = rcache_getforfill($table, $value1);