From 6b3eca01f20355a4fe406fa2eb49b02256f121ae Mon Sep 17 00:00:00 2001 From: poltawski Date: Tue, 8 Jan 2008 20:21:30 +0000 Subject: [PATCH] MDL-12882 - we were caching empty records which caused clone warnings backported from MOODLE_19_STABLE --- lib/dmllib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dmllib.php b/lib/dmllib.php index 96f110627e0..679b0f5766a 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -416,7 +416,7 @@ function get_record($table, $field1, $value1, $field2='', $value2='', $field3='' // If we're caching records, store this one // (supposing we got something - we don't cache failures) if ($docache) { - if (isset($record)) { + if ($record !== false) { rcache_set($table, $value1, $record); } else { rcache_releaseforfill($table, $value1);