summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a1ac550)
raw | patch | inline | side by side (parent: a1ac550)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 3 Apr 2006 08:00:44 +0000 (08:00 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/plugins/admin/systems/class_servRepositorySetup.inc b/plugins/admin/systems/class_servRepositorySetup.inc
index b5e5c14f2d54f93cebf170488f7ed8f1450b1674..bb64d2f8d36ba34a7097d4ecdcceee13c7e5a7ea 100644 (file)
$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;
+ }
}
}
}