From 2708725a71eae3eb06b970a0b207af9894b4b659 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 11 Mar 2014 17:30:06 +0100 Subject: [PATCH] Don't use isset() to check whether an existing variable is null Change-Id: I05ad172f69189cbef86c65d5990e76edbedfd7c6 --- includes/UserMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1