From 689177a8bb9dbea321fbbb87942fda7781986ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 1 Apr 2015 23:10:23 +0200 Subject: [PATCH] Fix WCF 2.1 compatibility of RoomEditor::deleteAll() --- file/lib/data/room/RoomEditor.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/file/lib/data/room/RoomEditor.class.php b/file/lib/data/room/RoomEditor.class.php index b85701a..9eb996c 100644 --- a/file/lib/data/room/RoomEditor.class.php +++ b/file/lib/data/room/RoomEditor.class.php @@ -47,7 +47,9 @@ public static function deleteAll(array $objectIDs = array()) { foreach ($objectIDs as $objectID) { $select->execute(array($objectID)); - $update->execute(array($select->fetchColumn())); + $showOrder = $select->fetchColumn(); + $select->closeCursor(); + $update->execute(array($showOrder)); } $return = parent::deleteAll($objectIDs);