mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 07:49:28 +01:00
fixed fatal error happening on some installs when deleting a dir in sqlfs
This commit is contained in:
parent
4048c304d7
commit
46325b070c
@ -625,6 +625,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
unset(self::$stat_cache[$path]);
|
unset(self::$stat_cache[$path]);
|
||||||
|
unset($stmt); // free statement object, on some installs a new prepare fails otherwise!
|
||||||
|
|
||||||
$stmt = self::$pdo->prepare('DELETE FROM '.self::TABLE.' WHERE fs_id=?');
|
$stmt = self::$pdo->prepare('DELETE FROM '.self::TABLE.' WHERE fs_id=?');
|
||||||
if (($ret = $stmt->execute(array($stat['ino']))) && $operation == self::STORE2FS)
|
if (($ret = $stmt->execute(array($stat['ino']))) && $operation == self::STORE2FS)
|
||||||
|
Loading…
Reference in New Issue
Block a user