diff options
author | msquare <msquare@notrademark.de> | 2017-12-14 20:42:05 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-12-17 11:40:36 +0100 |
commit | b2602f8936b056ad27d5343a0fe4be0483da8bf1 (patch) | |
tree | 0cfccd382aade891ea38f66c09ad791e600453b9 /includes | |
parent | 0e007ea78f8a85c6d7190b64c780b569318dd525 (diff) |
add log entries when deleting a room
Diffstat (limited to 'includes')
-rw-r--r-- | includes/model/Room_model.php | 3 |
1 files changed, 3 insertions, 0 deletions
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); } /** |