From b101c22a82ec2dbfa4c1b4de5429b600cc30d224 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 26 Jun 2014 07:40:06 -0700 Subject: [PATCH] Fix pageExists when passed invalid title $title would end up null leading to broken output. Change-Id: I349ec8aa15fa7e59ae198c2e4f92b3baa471ea23 --- maintenance/pageExists.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/pageExists.php b/maintenance/pageExists.php index c4b208a59c..3bde81ef31 100644 --- a/maintenance/pageExists.php +++ b/maintenance/pageExists.php @@ -41,7 +41,7 @@ class PageExists extends Maintenance { if ( $pageExists ) { $text = "{$title} exists."; } else { - $text = "{$title} doesn't exist."; + $text = "{$titleArg} doesn't exist."; $code = 1; } $this->output( $text ); -- 2.20.1