X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fforum%2Fsrc%2FForumIndexStorage.php;h=244c223ba67cf92212969da275e1dbf029b33fbb;hb=9424afc6c1f518c301bf87a23c047d1873435d05;hp=79945746c1404e626f3e9cf687bb6e8d85b13d0a;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/forum/src/ForumIndexStorage.php b/web/core/modules/forum/src/ForumIndexStorage.php index 79945746c..244c223ba 100644 --- a/web/core/modules/forum/src/ForumIndexStorage.php +++ b/web/core/modules/forum/src/ForumIndexStorage.php @@ -1,6 +1,7 @@ CommentInterface::PUBLISHED, ])->fetchObject(); $this->database->update('forum_index') - ->fields( [ + ->fields([ 'comment_count' => $count, 'last_comment_timestamp' => $last_reply->created, ]) @@ -114,7 +115,7 @@ class ForumIndexStorage implements ForumIndexStorageInterface { // Comments do not exist. // @todo This should be actually filtering on the desired node language $this->database->update('forum_index') - ->fields( [ + ->fields([ 'comment_count' => 0, 'last_comment_timestamp' => $node->getCreatedTime(), ])