Adtional tweeks and fixes

This commit is contained in:
JonatanRek
2020-10-05 21:12:06 +02:00
parent 94d6576070
commit e3b7e866f0
6 changed files with 43 additions and 28 deletions

View File

@@ -3,7 +3,7 @@ class RoomManager{
public static $rooms;
static function getDefaultRoomId() {
$defaultRoom = Db::loadOne("SELECT room_id FROM rooms WHERE 'default' = 1");
$defaultRoom = Db::loadOne("SELECT `room_id` FROM `rooms` WHERE `default` = 1");
return $defaultRoom['room_id'];
}