summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-11-25 16:30:57 +0100
committerRobin Appelman <icewind@owncloud.com>2012-11-25 16:30:57 +0100
commita609992a75d1dad15398f55e22ad2244c78650dc (patch)
tree0ae5c549ee437a07917ac6c0ef82139f21665346 /lib
parent0cfef83ed98951f852b07ce61dc10ee2e8266445 (diff)
downloadnextcloud-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.php2
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