From 0d5cd20121042f928a87aa35079c6418be1ba008 Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Sat, 2 Oct 2010 20:36:23 +0000 Subject: [PATCH] Fix undefined variable notice if $wgHiddenPrefs[] = 'fancysig'. Use !empty($blah) since that is what the rest of the code is doing. This does not change the behaviour in any way, only gets rid of the warning. Issue discovered by jorenl on irc. --- includes/Preferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Preferences.php b/includes/Preferences.php index abb3f5c03f..6a16024fc4 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -1117,7 +1117,7 @@ class Preferences { static function cleanSignature( $signature, $alldata ) { global $wgParser; - if ( $alldata['fancysig'] ) { + if ( !empty( $alldata['fancysig'] ) ) { $signature = $wgParser->cleanSig( $signature ); } else { // When no fancy sig used, make sure ~{3,5} get removed. -- 2.20.1