From: hickert Date: Mon, 3 Apr 2006 08:00:44 +0000 (+0000) Subject: Fixed ext hook parsing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c215db10d79567fe118c988986db710a7692273e;p=gosa.git Fixed ext hook parsing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2951 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servRepositorySetup.inc b/plugins/admin/systems/class_servRepositorySetup.inc index b5e5c14f2..bb64d2f8d 100644 --- a/plugins/admin/systems/class_servRepositorySetup.inc +++ b/plugins/admin/systems/class_servRepositorySetup.inc @@ -171,10 +171,14 @@ class servRepositorySetup extends plugin $tmp = split("\n",$res); foreach($tmp as $hook){ /* skip empty */ - if((empty($hook)) || (!preg_match("/:/",$hook))) continue; - - $hookinfo = split(":",$hook); - $ret[$hookinfo[1]] = $hookinfo[0]; + if(empty($hook)) continue; + + if(preg_match("/\:/",$hook)){ + $hookinfo = split(":",$hook); + $ret[$hookinfo[1]] = $hookinfo[0]; + }else{ + $ret[$hook] = $hook; + } } } }