From 3ab00a0f6d34b2bd963beb6a200af8e1ec198191 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 30 Jan 2007 09:11:19 +0000 Subject: [PATCH] fixed warning with undefined rcache during install --- lib/dmllib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dmllib.php b/lib/dmllib.php index 51b29f2409..15c4d91fc7 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -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); -- 2.39.5