summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 166bcc2)
raw | patch | inline | side by side (parent: 166bcc2)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 26 Jan 2010 09:50:59 +0000 (09:50 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 26 Jan 2010 09:50:59 +0000 (09:50 +0000) |
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
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
trunk/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc | patch | blob | history |
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 5d14bf2143fce908741cd95b9d613ed2e0e6bb54..4e122d898bf859c892051095fa47f56c8ae8bc56 100644 (file)
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;