Code

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

gosa-plugins/systems/admin/systems/main.inc

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