From 4cb38fad4b80450f7cf80b80a78fa0a3bfd52861 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 31 Oct 2014 12:06:13 +0100 Subject: [PATCH] Always return a value on SpecialRandomInCategory::onSubmit false usually indicates no submission was attempted in HTMLForms Change-Id: I11d1d3e627a9e9bc3ed77a70c1b4f7456011c772 --- includes/specials/SpecialRandomInCategory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1