diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-11-25 16:30:57 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-11-25 16:30:57 +0100 |
commit | a609992a75d1dad15398f55e22ad2244c78650dc (patch) | |
tree | 0ae5c549ee437a07917ac6c0ef82139f21665346 /lib | |
parent | 0cfef83ed98951f852b07ce61dc10ee2e8266445 (diff) | |
download | nextcloud-server-a609992a75d1dad15398f55e22ad2244c78650dc.tar.gz nextcloud-server-a609992a75d1dad15398f55e22ad2244c78650dc.zip |
better check if we are passing a fileid to Cache::get
Diffstat (limited to 'lib')
-rw-r--r-- | lib/files/cache/cache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files/cache/cache.php b/lib/files/cache/cache.php index bc52f21d910..5aeb6f25af0 100644 --- a/lib/files/cache/cache.php +++ b/lib/files/cache/cache.php @@ -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 |