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
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get($file) {
|
public function get($file) {
|
||||||
if (is_string($file)) {
|
if (is_string($file) or $file == '') {
|
||||||
$where = 'WHERE `storage` = ? AND `path_hash` = ?';
|
$where = 'WHERE `storage` = ? AND `path_hash` = ?';
|
||||||
$params = array($this->storageId, md5($file));
|
$params = array($this->storageId, md5($file));
|
||||||
} else { //file id
|
} else { //file id
|
||||||
|
|
Loading…
Reference in New Issue