From: hickert Date: Mon, 11 Jan 2010 10:11:14 +0000 (+0000) Subject: Allow to set multiple dependencies for listing actions : X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=751c7d6b2db0d708c261e643bf843ce402aa629f;p=gosa.git Allow to set multiple dependencies for listing actions : - e.g. {{{ createISO entry gotoWorkstation FAIobject plugins/systems/images/cdrom.png workstation/workgeneric[createFAICD:w] }}} git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15136 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 3b83e0811..8802c2523 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -854,11 +854,16 @@ class listing { $result.= " "; continue; } - } else { + } elseif (is_string($objectclass)) { if(!in_array($objectclass, $classes)) { $result.= " "; continue; } + } elseif (is_array($objectclass)) { + if(count(array_intersect($objectclass, $classes)) == count($objectclass)){ + $result.= " "; + continue; + } } }