From 7dd680cea14e0459bbb8d9582a9d4529b1f92c08 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Fri, 24 Jan 2014 17:33:50 +0400 Subject: [PATCH] Remove 'empty password' notification when altering another operator --- src/mibew/operator/operator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mibew/operator/operator.php b/src/mibew/operator/operator.php index 0b48319e..348c26eb 100644 --- a/src/mibew/operator/operator.php +++ b/src/mibew/operator/operator.php @@ -141,7 +141,7 @@ $canmodify = ($opId == $operator['operatorid'] && is_capable($can_modifyprofile, $page['stored'] = isset($_GET['stored']); $page['canmodify'] = $canmodify ? "1" : ""; $page['showjabber'] = $settings['enablejabber'] == "1"; -$page['needChangePassword'] = check_password_hash($operator['vclogin'], '', $operator['vcpassword']); +$page['needChangePassword'] = ($opId == $operator['operatorid']) ? check_password_hash($operator['vclogin'], '', $operator['vcpassword']) : FALSE; prepare_menu($operator); setup_operator_settings_tabs($opId, 0);