diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-03-11 21:48:35 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-03-11 21:48:52 +0100 |
commit | a85a10b378883bfb3f3337d963dc573c2e803e2d (patch) | |
tree | 3a86d6a807411dfea2785ca09432966dd7d50dec /lib | |
parent | 618f92b3fb6cde750e3fafd114c3f2f1179e434d (diff) | |
download | nextcloud-server-a85a10b378883bfb3f3337d963dc573c2e803e2d.tar.gz nextcloud-server-a85a10b378883bfb3f3337d963dc573c2e803e2d.zip |
oc_db isn't pdo
Diffstat (limited to 'lib')
-rw-r--r-- | lib/filecache.php | 4 |
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=?'); |