From: hickert Date: Wed, 23 Apr 2008 07:25:44 +0000 (+0000) Subject: Updated environment/kiosk error X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7b73c7933c05f8051bf7e0aaf962fe862925bd8f;p=gosa.git Updated environment/kiosk error git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10630 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/personal/environment/class_environment.inc b/gosa-plugins/goto/personal/environment/class_environment.inc index 91b98c142..f3a1d06ea 100644 --- a/gosa-plugins/goto/personal/environment/class_environment.inc +++ b/gosa-plugins/goto/personal/environment/class_environment.inc @@ -273,7 +273,7 @@ class environment extends plugin $this->gotoKioskProfile_Profile= preg_replace("/^.*\//","",$this->gotoKioskProfile); $error = false; - if(!in_array($this->gotoKioskProfile_Server, $this->gotoKioskProfiles['SERVERS'])){ + if(!isset($this->gotoKioskProfiles['SERVERS'][$this->gotoKioskProfile_Server])){ $error = true; }elseif(!in_array($this->gotoKioskProfile_Profile, $this->gotoKioskProfiles['BY_SERVER'][$this->gotoKioskProfile_Server])){ $error = true; @@ -282,6 +282,9 @@ class environment extends plugin msg_dialog::display(_("Warning"), sprintf(_("Kiosk profile '%s' located on server '%s' is not available anymore. Kiosk profile will be disabled!"), $this->gotoKioskProfile_Profile, $this->gotoKioskProfile_Server), WARNING_DIALOG); $this->gotoKioskProfile_Server ="none"; $this->gotoKioskProfile_Profile=""; + }elseif(empty($this->gotoKioskProfile)){ + $this->gotoKioskProfile_Server ="none"; + $this->gotoKioskProfile_Profile=""; } }