Code

Fixed ext hook parsing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Apr 2006 08:00:44 +0000 (08:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Apr 2006 08:00:44 +0000 (08:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2951 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servRepositorySetup.inc

index b5e5c14f2d54f93cebf170488f7ed8f1450b1674..bb64d2f8d36ba34a7097d4ecdcceee13c7e5a7ea 100644 (file)
@@ -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;
+          }
         }
       }
     }