From: Alexandre Emsenhuber Date: Tue, 11 Mar 2014 16:30:06 +0000 (+0100) Subject: Don't use isset() to check whether an existing variable is null X-Git-Tag: 1.31.0-rc.0~16591^2 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=2708725a71eae3eb06b970a0b207af9894b4b659;p=lhc%2Fweb%2Fwiklou.git Don't use isset() to check whether an existing variable is null Change-Id: I05ad172f69189cbef86c65d5990e76edbedfd7c6 --- diff --git a/includes/UserMailer.php b/includes/UserMailer.php index fe80929a56..4d8fce8fe4 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -276,7 +276,7 @@ class UserMailer { $headers = $mime->headers( $headers ); } } - if ( !isset( $mime ) ) { + if ( $mime === null ) { // sending text only, either deliberately or as a fallback if ( wfIsWindows() ) { $body = str_replace( "\n", "\r\n", $body );