better check if we are passing a fileid to Cache::get

This commit is contained in:
Robin Appelman 2012-11-25 16:30:57 +01:00
parent 0cfef83ed9
commit a609992a75
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class Cache {
* @return array
*/
public function get($file) {
if (is_string($file)) {
if (is_string($file) or $file == '') {
$where = 'WHERE `storage` = ? AND `path_hash` = ?';
$params = array($this->storageId, md5($file));
} else { //file id