From: hickert Date: Fri, 2 Jul 2010 07:34:55 +0000 (+0000) Subject: Updated main.inc X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=baf6761732c7018279f0dba762f75939a3502c8c;p=gosa.git Updated main.inc git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18913 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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'); }