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);