Code

fixed plugin handling in case of GET_[reset]
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Sep 2010 13:39:17 +0000 (13:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Sep 2010 13:39:17 +0000 (13:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19639 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/users/main.inc

index ce28ef5745810f7a3476926769e5a0bb312058d5..7f1e5c65f5b83b97f8a723096e647e982ba84b57 100644 (file)
  */
 
 /* Remove locks created by this plugin
-*/
+ */
 if ($remove_lock){
-  if(session::is_set('userManagement')){
-      $macl = session::get('userManagement');
-      $macl->remove_lock();
-  }
+    if(session::is_set('userManagement')){
+        $macl = session::get('userManagement');
+        $macl->remove_lock();
+        session::un_set('userManagement');
+    }
 }
 
 /* Remove this plugin from session
-*/
+ */
 if ( $cleanup ){
-  session::un_set('userManagement');
+    session::un_set('userManagement');
 }else{
 
-  /* Create usermanagement object on demand */
-  if (!session::is_set('userManagement')){
-    $userManagement= new userManagement ($config, $ui);
-    session::set('userManagement',$userManagement);
-  }
-  $userManagement = session::get('userManagement');
-  $display= $userManagement->execute();
+    /* Create usermanagement object on demand */
+    if (!session::is_set('userManagement')){
+        $userManagement= new userManagement ($config, $ui);
+        session::set('userManagement',$userManagement);
+    }
+    $userManagement = session::get('userManagement');
+    $display= $userManagement->execute();
 
-  /* Reset requested? */
-  if (isset($_GET['reset']) && $_GET['reset'] == 1){
-    session::un_set ('userManagement');
-  }
+    /* Reset requested? */
+    if (isset($_GET['reset']) && $_GET['reset'] == 1){
+        session::un_set ('userManagement');
+    }
 
-  /* Show and save dialog */
-  session::set('userManagement',$userManagement);
+    /* Show and save dialog */
+    session::set('userManagement',$userManagement);
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: