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