Code

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

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

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