From 7b35045f063e6c4fc96a04786646c7f748c3b3ad Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Wed, 18 Jan 2012 10:11:49 +0000 Subject: [PATCH] Fixed the bug related with the need to enter passwords when you change the profile of any operator. --- src/messenger/webim/operator/operator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messenger/webim/operator/operator.php b/src/messenger/webim/operator/operator.php index 00413716..1304fcd3 100644 --- a/src/messenger/webim/operator/operator.php +++ b/src/messenger/webim/operator/operator.php @@ -78,7 +78,7 @@ if (isset($_POST['login']) && isset($_POST['password'])) { } else { update_operator($opId, $login, $email, $password, $localname, $commonname); // update the session password - if (isset($password) && $opId == $operator['operatorid']) { + if (!empty($password) && $opId == $operator['operatorid']) { $toDashboard = $operator['vcpassword'] == md5('') && $password != ''; $_SESSION["${mysqlprefix}operator"]['vcpassword'] = md5($password); if($toDashboard) {