Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/54625
Change subject: Bug 36781 - Collection: Call to a member function getText() on
a non-object
......................................................................
Bug 36781 - Collection: Call to a member function getText() on a non-object
Change-Id: I918f7e6ba0f7d335ea0faad07b65db633a7c4f3b
---
M Collection.suggest.php
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection
refs/changes/25/54625/1
diff --git a/Collection.suggest.php b/Collection.suggest.php
index 0c22df4..343a041 100644
--- a/Collection.suggest.php
+++ b/Collection.suggest.php
@@ -436,7 +436,11 @@
if ( is_null( $title ) || !$title->exists() ) {
continue;
}
- $link = $this->resolveRedirects( $title )->getText();
+ $resolved = $this->resolveRedirects( $title );
+ if ( !$title ) {
+ continue;
+ }
+ $link = $resolved->getText();
if ( isset ( $linkmap[$link] ) ) {
$linkmap[$link][$link] = true;
--
To view, visit https://gerrit.wikimedia.org/r/54625
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I918f7e6ba0f7d335ea0faad07b65db633a7c4f3b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Collection
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits