From f5defa249728fd2b8c9e1685af10990b4b8714c2 Mon Sep 17 00:00:00 2001 From: psc Date: Tue, 23 Feb 2010 09:44:57 +0000 Subject: [PATCH] Commit LHM-local patch Disable CD generation, if no ISOCMD is specified git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15668 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_divListSystem.inc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/trunk/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/trunk/gosa-plugins/systems/admin/systems/class_divListSystem.inc index 8176f2a4b..f03f1744b 100644 --- a/trunk/gosa-plugins/systems/admin/systems/class_divListSystem.inc +++ b/trunk/gosa-plugins/systems/admin/systems/class_divListSystem.inc @@ -361,11 +361,14 @@ class divListSystem extends MultiSelectWindow /* Add create FAI CD icon */ $acl_cd = preg_match("/w/",$ui->get_permissions($val['dn'],"workstation/workgeneric","createFAICD")); - if(in_array("gotoWorkstation",$val['objectClass']) && $acl_cd){ - $action2= "config->search("workgeneric", "ISOCMD",array('tabs')); + if (check_command($isocd_command)){ + if(in_array("gotoWorkstation",$val['objectClass']) && $acl_cd){ + $action2= " ".$action2; - }else{ - $action2= $empty.$action2; + }else{ + $action2= $empty.$action2; + } } if(isset($val['message'])){ -- 2.30.2