From: Chad Horohoe Date: Thu, 26 Jun 2014 14:40:06 +0000 (-0700) Subject: Fix pageExists when passed invalid title X-Git-Tag: 1.31.0-rc.0~15234 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=b101c22a82ec2dbfa4c1b4de5429b600cc30d224;p=lhc%2Fweb%2Fwiklou.git Fix pageExists when passed invalid title $title would end up null leading to broken output. Change-Id: I349ec8aa15fa7e59ae198c2e4f92b3baa471ea23 --- 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 );