From 877e775d9edb1d9a0df86edef494fbbb45206e27 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 6 Aug 2018 10:17:19 +0200 Subject: [PATCH] Fix undefined index latest_comment Signed-off-by: Joas Schilling --- lib/Chat/CommentsManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Chat/CommentsManager.php b/lib/Chat/CommentsManager.php index 7dd3b05b660..bbfe9d2c17f 100644 --- a/lib/Chat/CommentsManager.php +++ b/lib/Chat/CommentsManager.php @@ -67,7 +67,7 @@ public function getLastCommentDateByActor( $result = $query->execute(); while ($row = $result->fetch()) { - $lastComments[$row['actor_id']] = new \DateTime($row['latest_comment']); + $lastComments[$row['actor_id']] = new \DateTime($row['last_comment']); } $result->closeCursor();