diff --git a/lib/dmllib.php b/lib/dmllib.php index 4c55e499f9a..8b76fac5dcc 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);