Code

Fixed problem in newly introduced base_hook
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Apr 2007 11:04:49 +0000 (11:04 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Apr 2007 11:04:49 +0000 (11:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5979 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index e78c2f8742c209d972f4f3a163d3f5c09f5bbb0d..c9f00989294efb80663b36bea02a57c0ed54e306 100644 (file)
@@ -2170,7 +2170,7 @@ function get_base_from_hook($dn, $attrib)
       if (check_command($command)){
         @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Execute");
         exec($command, $output);
-        if (preg_match("/^[0-9]+$/", $output)){
+        if (preg_match("/^[0-9]+$/", $output[0])){
           return ($output[0]);
         } else {
           print_red(_("Warning - base_hook is not avialable. Using default base."));