From b2602f8936b056ad27d5343a0fe4be0483da8bf1 Mon Sep 17 00:00:00 2001 From: msquare Date: Thu, 14 Dec 2017 20:42:05 +0100 Subject: [PATCH] add log entries when deleting a room --- includes/model/Room_model.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/model/Room_model.php b/includes/model/Room_model.php index 098968c9..b23e35d1 100644 --- a/includes/model/Room_model.php +++ b/includes/model/Room_model.php @@ -54,9 +54,11 @@ function Room_ids() */ function Room_delete($room_id) { + $room = Room($room_id); DB::delete('DELETE FROM `Room` WHERE `RID` = ?', [ $room_id ]); + engelsystem_log('Room deleted: ' . $room['Name']); } /** @@ -69,6 +71,7 @@ function Room_delete_by_name($name) DB::delete('DELETE FROM `Room` WHERE `Name` = ?', [ $name ]); + engelsystem_log('Room deleted: ' . $name); } /**