Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/54627
Change subject: Bug 43071 - Collection: Call to a member function
getTimestamp() on a non-object
......................................................................
Bug 43071 - Collection: Call to a member function getTimestamp() on a non-object
Change-Id: I30fae131140dd074de0ca5458be86bb822703dfe
---
M Collection.body.php
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection
refs/changes/27/54627/1
diff --git a/Collection.body.php b/Collection.body.php
index 8c67526..d479a9b 100644
--- a/Collection.body.php
+++ b/Collection.body.php
@@ -839,6 +839,9 @@
}
$revision = Revision::newFromTitle( $articleTitle,
$article->getOldID() );
+ if ( !$revision ) {
+ return null;
+ }
$latest = $article->getLatest();
$oldid = $article->getOldID();
--
To view, visit https://gerrit.wikimedia.org/r/54627
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I30fae131140dd074de0ca5458be86bb822703dfe
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