summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c9076d9)
raw | patch | inline | side by side (parent: c9076d9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 13:39:08 +0000 (13:39 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 13:39:08 +0000 (13:39 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19635 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/opsi/admin/opsiLicenses/main.inc | patch | blob | history |
diff --git a/gosa-plugins/opsi/admin/opsiLicenses/main.inc b/gosa-plugins/opsi/admin/opsiLicenses/main.inc
index 292ebc98099b988d754e82d3420880d6a58581e7..751c6a44872b82ba75c393083ae9fcbbe78fed0f 100644 (file)
*/
/* Remove locks created by this plugin
-*/
+ */
if ($remove_lock){
- if(session::is_set('opsiLicenses')){
- $macl = session::get('opsiLicenses');
- $macl->remove_lock();
- }
+ if(session::is_set('opsiLicenses')){
+ $macl = session::get('opsiLicenses');
+ $macl->remove_lock();
+ session::un_set('opsiLicenses');
+ }
}
/* Remove this plugin from session
-*/
+ */
if ( $cleanup ){
- session::un_set('opsiLicenses');
+ session::un_set('opsiLicenses');
}else{
- /* Create opsiLicenses object on demand */
- if (!session::is_set('opsiLicenses')){
- $opsiLicenses= new opsiLicenses ($config, $ui);
- session::set('opsiLicenses',$opsiLicenses);
- }
- $opsiLicenses = session::get('opsiLicenses');
- $display= $opsiLicenses->execute();
+ /* Create opsiLicenses object on demand */
+ if (!session::is_set('opsiLicenses')){
+ $opsiLicenses= new opsiLicenses ($config, $ui);
+ session::set('opsiLicenses',$opsiLicenses);
+ }
+ $opsiLicenses = session::get('opsiLicenses');
+ $display= $opsiLicenses->execute();
- /* Reset requested? */
- if (isset($_GET['reset']) && $_GET['reset'] == 1){
- session::un_set ('opsiLicenses');
- }
+ /* Reset requested? */
+ if (isset($_GET['reset']) && $_GET['reset'] == 1){
+ session::un_set ('opsiLicenses');
+ }
- /* Show and save dialog */
- session::set('opsiLicenses',$opsiLicenses);
+ /* Show and save dialog */
+ session::set('opsiLicenses',$opsiLicenses);
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: