From c215db10d79567fe118c988986db710a7692273e Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 3 Apr 2006 08:00:44 +0000 Subject: [PATCH] Fixed ext hook parsing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2951 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servRepositorySetup.inc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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; + } } } } -- 2.30.2