Alex Monk has uploaded a new change for review.

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


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, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiquidThreads 
refs/changes/42/49842/1

diff --git a/api/ApiFeedLQTThreads.php b/api/ApiFeedLQTThreads.php
index 696a6ff..efaba94 100644
--- a/api/ApiFeedLQTThreads.php
+++ b/api/ApiFeedLQTThreads.php
@@ -109,6 +109,9 @@
 
                foreach ( (array)$params['thread'] as $thread ) {
                        $t = Title::newFromText( $thread );
+                       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: newchange
Gerrit-Change-Id: I8c7bcb9c0b65f79385137d7cc598229a42330a41
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>

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

Reply via email to