]> source.dussan.org Git - nextcloud-server.git/commitdiff
oc_db isn't pdo
authorRobin Appelman <icewind@owncloud.com>
Sun, 11 Mar 2012 20:48:35 +0000 (21:48 +0100)
committerRobin Appelman <icewind@owncloud.com>
Sun, 11 Mar 2012 20:48:52 +0000 (21:48 +0100)
lib/filecache.php

index 73ce61e4102c15a88642bd302af1ab958a9d27aa..15eec43abe51d7984dc563d27777cd762bffcdca 100644 (file)
@@ -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=?');