diff --git a/src/usr/local/www/system_advanced_notifications.php b/src/usr/local/www/system_advanced_notifications.php index 3aa94baadf..d74b029b55 100644 --- a/src/usr/local/www/system_advanced_notifications.php +++ b/src/usr/local/www/system_advanced_notifications.php @@ -95,7 +95,7 @@ if ($_POST) { $config['notifications']['smtp']['notifyemailaddress'] = $_POST['smtpnotifyemailaddress']; $config['notifications']['smtp']['username'] = $_POST['smtpusername']; - if ($_POST['smtppassword'] != DMYPWD) { + if (strcmp($_POST['smtppassword'], DMYPWD)!= 0) { if ($_POST['smtppassword'] == $_POST['smtppassword_confirm']) { $config['notifications']['smtp']['password'] = $_POST['smtppassword']; } else {