From fe843847bc7408c150f47335a4d54d9429a39df6 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Oct 2008 10:02:02 +0000 Subject: [PATCH] Updated Terminals _Avoid adding empty shares. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12765 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc index 7cc70515d..bc6009fef 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc @@ -209,7 +209,7 @@ class termstartup extends plugin /* We assign a share to this user, if we don't know where to mount the share */ if((!isset($_POST['gotoShareMountPoint']))||(empty($_POST['gotoShareMountPoint']))||(preg_match("/[\|]/i",$_POST['gotoShareMountPoint']))){ msg_dialog::display(_("Error"), msgPool::invalid(_("Mount point")), WARNING_DIALOG); - }elseif(!empty($_POST['gotoShareSelection'])){ + }elseif(isset($this->gotoAvailableShares[$_POST['gotoShareSelection']])){ $a_share = $this->gotoAvailableShares[$_POST['gotoShareSelection']]; $s_mount = $_POST['gotoShareMountPoint']; /* Preparing the new assignment */ -- 2.30.2