UltrasonicNXT has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/185915

Change subject: Fix some errors
......................................................................

Fix some errors

Some checking

Change-Id: I4443fc277a078c39974f3b54299fc4809814f5f2
---
M CommentsPage.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Comments 
refs/changes/15/185915/1

diff --git a/CommentsPage.php b/CommentsPage.php
index 8179f61..e0d7270 100644
--- a/CommentsPage.php
+++ b/CommentsPage.php
@@ -414,6 +414,7 @@
 
         foreach ( $comments as $comment ) {
             if (
+                $comment &&
                 !array_key_exists( $comment->username, $bucket ) &&
                 $comment->userID == 0
             ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/185915
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4443fc277a078c39974f3b54299fc4809814f5f2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Comments
Gerrit-Branch: master
Gerrit-Owner: UltrasonicNXT <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to