From: hickert Date: Thu, 6 Apr 2006 05:06:27 +0000 (+0000) Subject: Added additional check for gotoKioskProfile ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2d3c127405a4e7c7a549ba0af24945bfb5d4b152;p=gosa.git Added additional check for gotoKioskProfile ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3001 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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);