From 2d3c127405a4e7c7a549ba0af24945bfb5d4b152 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 6 Apr 2006 05:06:27 +0000 Subject: [PATCH] Added additional check for gotoKioskProfile ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3001 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_environment.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 6e1121ae8..b3da9b374 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -50,7 +50,7 @@ class environment extends plugin /* Kiosk profile */ var $gotoKioskProfile = "none"; // The selected Kiosk Profile var $gotoKioskProfiles = array();// All available Kiosk profiles - VAR $newKioskProfiles = array(); + var $newKioskProfiles = array(); /* Hotplug Devices */ var $gotoHotplugDevice = array(); // Selected hotplug @@ -417,6 +417,11 @@ class environment extends plugin $list = array_reverse($list); + if(!isset($list[$this->gotoKioskProfile])){ + print_red(sprintf(_("The selected kiosk profile '%s' is no longer available, setting current profile to 'none'."),$this->gotoKioskProfile)); + $this->gotoKioskProfile = 'none'; + } + /* Reassign help class */ $_SESSION['current_class_for_help'] = get_class($this); -- 2.30.2