jenkins-bot has submitted this change and it was merged.

Change subject: (bug 41185) Fix Call to a member function getPrefixedText() on 
a non-object
......................................................................


(bug 41185) Fix Call to a member function getPrefixedText() on a non-object

Change-Id: I8c7bcb9c0b65f79385137d7cc598229a42330a41
---
M api/ApiFeedLQTThreads.php
1 file changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/api/ApiFeedLQTThreads.php b/api/ApiFeedLQTThreads.php
index 696a6ff..f72901c 100644
--- a/api/ApiFeedLQTThreads.php
+++ b/api/ApiFeedLQTThreads.php
@@ -109,11 +109,17 @@
 
                foreach ( (array)$params['thread'] as $thread ) {
                        $t = Title::newFromText( $thread );
+                       if ( !$t ) {
+                               continue;
+                       }
                        $fromPlaces[] = $t->getPrefixedText();
                }
 
                foreach ( (array)$params['talkpage'] as $talkpage ) {
                        $t = Title::newFromText( $talkpage );
+                       if ( !$t ) {
+                               continue;
+                       }
                        $fromPlaces[] = $t->getPrefixedText();
                }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I8c7bcb9c0b65f79385137d7cc598229a42330a41
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to