diff --git a/file/lib/data/room/RoomEditor.class.php b/file/lib/data/room/RoomEditor.class.php index bc94ed9..1dd6d1e 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);