From 48cc132c8b2dd7af2284cbd0ef57bde50c479678 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 13 Sep 2010 13:39:15 +0000 Subject: [PATCH] fixed plugin handling in case of GET_[reset] git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19638 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/main.inc | 41 +++++++++++---------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/main.inc b/gosa-plugins/systems/admin/systems/main.inc index 03a537a46..e4d4913e7 100644 --- a/gosa-plugins/systems/admin/systems/main.inc +++ b/gosa-plugins/systems/admin/systems/main.inc @@ -21,35 +21,36 @@ */ /* 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: -- 2.30.2