oc_db isn't pdo

This commit is contained in:
Robin Appelman 2012-03-11 21:48:35 +01:00
parent 618f92b3fb
commit a85a10b378
1 changed files with 2 additions and 2 deletions

View 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=?');