Merge pull request #1634 from irgsmirx/patch-6

Update/Bugfix lib/files/cache/legacy.php during database upgrade
This commit is contained in:
Thomas Müller 2013-02-11 15:31:28 -08:00
commit 53111ccdc8
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ class Legacy {
$this->cacheHasItems = false;
return false;
}
if ($result === false || property_exists($result, 'error_message_prefix')) {
$this->cacheHasItems = false;
return false;
}
$this->cacheHasItems = (bool)$result->fetchRow();
return $this->cacheHasItems;
}