From baf6761732c7018279f0dba762f75939a3502c8c Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 2 Jul 2010 07:34:55 +0000 Subject: [PATCH] Updated main.inc git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18913 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/personal/myaccount/main.inc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gosa-core/plugins/personal/myaccount/main.inc b/gosa-core/plugins/personal/myaccount/main.inc index 3fcb3ef26..45d0438c1 100644 --- a/gosa-core/plugins/personal/myaccount/main.inc +++ b/gosa-core/plugins/personal/myaccount/main.inc @@ -24,15 +24,17 @@ /* Remove locks created by this plugin */ $lock_msg=""; -if ($remove_lock || isset($_POST['edit_cancel']) || isset($_POST['password_cancel'])){ - del_lock($ui->dn); - if(session::is_set('MyAccountTabs') && session::is_set('edit')){ - session::un_set('MyAccountTabs'); - } +if ($remove_lock || + isset($_POST['edit_cancel']) || + isset($_POST['password_cancel'])){ + del_lock($ui->dn); + if(session::is_set('MyAccountTabs') && session::is_set('edit')){ + session::un_set('MyAccountTabs'); + } } /* Reset requested? */ -if (isset($_POST['edit_cancel']) || $cleanup){ +if (isset($_POST['edit_cancel']) || $cleanup || isset($_POST['password_changed'])){ session::un_set ('edit'); session::un_set ('MyAccountTabs'); } -- 2.30.2