Merge "Always return a value on SpecialRandomInCategory::onSubmit"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 27 Nov 2014 05:20:14 +0000 (05:20 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 27 Nov 2014 05:20:14 +0000 (05:20 +0000)
includes/specials/SpecialRandomInCategory.php

index 570ab3b..f9e03ab 100644 (file)
@@ -117,7 +117,7 @@ class SpecialRandomInCategory extends FormSpecialPage {
                        return Status::newFatal( $msg );
 
                } elseif ( !$this->category ) {
-                       return; // no data sent
+                       return false; // no data sent
                }
 
                $title = $this->getRandomTitle();