summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-03-11 21:48:35 +0100
committerRobin Appelman <icewind@owncloud.com>2012-03-11 21:48:52 +0100
commita85a10b378883bfb3f3337d963dc573c2e803e2d (patch)
tree3a86d6a807411dfea2785ca09432966dd7d50dec /lib
parent618f92b3fb6cde750e3fafd114c3f2f1179e434d (diff)
downloadnextcloud-server-a85a10b378883bfb3f3337d963dc573c2e803e2d.tar.gz
nextcloud-server-a85a10b378883bfb3f3337d963dc573c2e803e2d.zip
oc_db isn't pdo
Diffstat (limited to 'lib')
-rw-r--r--lib/filecache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filecache.php b/lib/filecache.php
index 73ce61e4102..15eec43abe5 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -183,8 +183,8 @@ class OC_FileCache{
self::delete(self::getFileId($path));
}elseif($file!=-1){
$query=OC_DB::prepare('SELECT id FROM *PREFIX*fscache WHERE parent=?');
- $query->execute(array($file));
- while($child=$query->fetchRow()){
+ $result=$query->execute(array($file));
+ while($child=$result->fetchRow()){
self::delete(intval($child['id']));
}
$query=OC_DB::prepare('DELETE FROM *PREFIX*fscache WHERE id=?');