Use a type-secure check
authorTim Düsterhus <timwolla@arcor.de>
Thu, 1 Dec 2011 21:50:55 +0000 (22:50 +0100)
committerTim Düsterhus <timwolla@arcor.de>
Thu, 1 Dec 2011 21:50:55 +0000 (22:50 +0100)
wcfsetup/install/files/lib/system/mail/MailSender.class.php

index 674a122212768b841e3030deff32e6ab0e1bfdc1..4c7f7208e0a1f84dd8797044c3cfe4f8e2cb83e4 100644 (file)
@@ -24,7 +24,7 @@ abstract class MailSender {
         * @return      MailSender
         */
        public static function getInstance() {
-               if (self::$instance == null) {
+               if (self::$instance === null) {
                        switch (MAIL_SEND_METHOD) {
                                case 'php':
                                        self::$instance = new PHPMailSender();