From 161d0504f09c81f78f78fc595f6e6a1f3fedb790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 7 Jul 2013 22:32:04 +0200 Subject: [PATCH] Fix joining when no message exists --- file/lib/data/room/RoomAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/lib/data/room/RoomAction.class.php b/file/lib/data/room/RoomAction.class.php index 143a82a..57c7bf2 100644 --- a/file/lib/data/room/RoomAction.class.php +++ b/file/lib/data/room/RoomAction.class.php @@ -236,7 +236,7 @@ public function join() { 'chatRoomID' => $room->roomID, 'chatAway' => null, 'chatLastActivity' => TIME_NOW, - 'chatLastSeen' => $stmt->fetchColumn() + 'chatLastSeen' => $stmt->fetchColumn() ?: 0 )); // add activity points