From 889d1768d530c6444dd012da494f501a3f3d4329 Mon Sep 17 00:00:00 2001 From: psc Date: Tue, 26 Jan 2010 09:50:59 +0000 Subject: [PATCH] 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 --- .../goto/admin/systems/goto/class_workstationService.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2