MDL-12882 - we were caching empty records which caused clone warnings

This commit is contained in:
poltawski
2008-01-08 20:19:18 +00:00
parent 5e17bdd0eb
commit 8432e9ba39
+1 -1
View File
@@ -423,7 +423,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);