From 46325b070c7bcc963796b2400d0b58a28d7a4b41 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 24 Apr 2008 15:19:42 +0000 Subject: [PATCH] fixed fatal error happening on some installs when deleting a dir in sqlfs --- phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php index d1ca21cc99..6bc857f692 100644 --- a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php @@ -625,6 +625,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper return false; } 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=?'); if (($ret = $stmt->execute(array($stat['ino']))) && $operation == self::STORE2FS)