Code

Updated main.inc
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Jul 2010 07:34:55 +0000 (07:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Jul 2010 07:34:55 +0000 (07:34 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18913 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/myaccount/main.inc

index 3fcb3ef2640f6b72834a3f6c2142ade275b164fd..45d0438c1dee00960b703fc0d0ff6a691ec72cf1 100644 (file)
 /* 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');
 }