add log entries when deleting a room

This commit is contained in:
msquare 2017-12-14 20:42:05 +01:00
parent 0e007ea78f
commit b2602f8936
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
/**