Reedy has uploaded a new change for review.

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


Change subject: Bug 41041 - Collection: Call to a member function getFullURL() 
on a non-object
......................................................................

Bug 41041 - Collection: Call to a member function getFullURL() on a non-object

Change-Id: I1d0f59e32e3851ef9eb6f9f51df5016c398a4d71
---
M Collection.body.php
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection 
refs/changes/26/54626/1

diff --git a/Collection.body.php b/Collection.body.php
index 8c67526..52702d4 100644
--- a/Collection.body.php
+++ b/Collection.body.php
@@ -161,7 +161,9 @@
                                return;
                        case 'add_category':
                                $title = Title::makeTitleSafe( NS_CATEGORY, 
$request->getVal( 'cattitle', '' ) );
-                               if ( self::addCategory( $title ) ) {
+                               if ( !$title ) {
+                                       return;
+                               } elseif ( self::addCategory( $title ) ) {
                                        self::limitExceeded();
                                        return;
                                } else {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1d0f59e32e3851ef9eb6f9f51df5016c398a4d71
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

Reply via email to