From: poltawski Date: Tue, 8 Jan 2008 20:20:36 +0000 (+0000) Subject: MDL-12882 - we were caching empty records which caused clone warnings X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=667a2d481eca083268bbc2841401d29382e2359f;p=moodle.git MDL-12882 - we were caching empty records which caused clone warnings merged from MOODLE_19_STABLE --- diff --git a/lib/dmllib.php b/lib/dmllib.php index 4c55e499f9..8b76fac5dc 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -429,7 +429,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);