better check if we are passing a fileid to Cache::get
This commit is contained in:
parent
0cfef83ed9
commit
a609992a75
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue