From: umherirrender Date: Fri, 31 Oct 2014 11:06:13 +0000 (+0100) Subject: Always return a value on SpecialRandomInCategory::onSubmit X-Git-Tag: 1.31.0-rc.0~13158^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=4cb38fad4b80450f7cf80b80a78fa0a3bfd52861;p=lhc%2Fweb%2Fwiklou.git Always return a value on SpecialRandomInCategory::onSubmit false usually indicates no submission was attempted in HTMLForms Change-Id: I11d1d3e627a9e9bc3ed77a70c1b4f7456011c772 --- diff --git a/includes/specials/SpecialRandomInCategory.php b/includes/specials/SpecialRandomInCategory.php index 570ab3bf82..f9e03ab974 100644 --- a/includes/specials/SpecialRandomInCategory.php +++ b/includes/specials/SpecialRandomInCategory.php @@ -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();