Code

Closes #315 Kiosk profile settings will be resetted to 'none' if the selected profile...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Jan 2008 08:16:06 +0000 (08:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Jan 2008 08:16:06 +0000 (08:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8339 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/environment/class_environment.inc

index de73b496c66ce4fe7ba19a98851bfa99db8b0ce9..fe0be1d0189676b5814ecc3a5a10bf11e00b7fde 100644 (file)
@@ -285,6 +285,8 @@ class environment extends plugin
       $error = true;
     }
     if($error && !empty($this->gotoKioskProfile)){
+      $this->gotoKioskProfile_Server ="none";
+      $this->gotoKioskProfile_Profile="";
       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);
     }
   }
@@ -335,7 +337,7 @@ class environment extends plugin
 
           /* No other profile servers found */
           msg_dialog::display(_("Warning"), sprintf(_("Profile server '%s' is not available anymore. Kiosk profile will be disabled."), $this->gotoProfileServer), WARNING_DIALOG);
-          $this->gotoProfileServer = "";
+          $this->gotoProfileServer = "none";
         }
       }
     }