Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -1107,7 +1107,8 @@ |
1108 | 1108 | $wgLang->formatNum( $wgMaxSigChars ) |
1109 | 1109 | ) |
1110 | 1110 | ); |
1111 | | - } elseif ( !empty( $alldata['fancysig'] ) && |
| 1111 | + } elseif ( isset( $alldata['fancysig'] ) && |
| 1112 | + $alldata['fancysig'] && |
1112 | 1113 | false === $wgParser->validateSig( $signature ) ) { |
1113 | 1114 | return Xml::element( 'span', array( 'class' => 'error' ), wfMsg( 'badsig' ) ); |
1114 | 1115 | } else { |
— | — | @@ -1117,7 +1118,7 @@ |
1118 | 1119 | |
1119 | 1120 | static function cleanSignature( $signature, $alldata ) { |
1120 | 1121 | global $wgParser; |
1121 | | - if ( !empty( $alldata['fancysig'] ) ) { |
| 1122 | + if ( isset( $alldata['fancysig'] ) && $alldata['fancysig'] ) { |
1122 | 1123 | $signature = $wgParser->cleanSig( $signature ); |
1123 | 1124 | } else { |
1124 | 1125 | // When no fancy sig used, make sure ~{3,5} get removed. |