From: psc Date: Tue, 26 Jan 2010 09:50:59 +0000 (+0000) Subject: Fix for #4146 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=889d1768d530c6444dd012da494f501a3f3d4329;p=gosa.git Fix for #4146 Fix wrong condition in check weither a certain ogroup has a valid driver set or should show "unknown". It tested on "if attribute gotoXDriver is not empty" while it should have tested for "if attribute is empty" which caused unknown to be shown errornous in some cases. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15307 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc b/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc index 5d14bf214..4e122d898 100644 --- a/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc +++ b/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc @@ -202,7 +202,7 @@ class workservice extends plugin switch ($name){ case 'gotoXDriver': $ogroup_driver = $attrs['gotoXDriver'][0]; - if (in_array($ogroup_driver, $this->XDrivers) && (!empty($this->attrs['gotoXDriver']))) { + if (in_array($ogroup_driver, $this->XDrivers) && (empty($this->attrs['gotoXDriver']))) { $this->XDrivers = array('default' => _("inherited").' ['.$attrs[$name][0].']' ) + $this->XDrivers; } break;