Code

Fixed array problem in regex
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Apr 2007 11:04:09 +0000 (11:04 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Apr 2007 11:04:09 +0000 (11:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5978 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 65c9fa53a16f485c081ec2d128c2b1441f04b0f4..7d9185482ed165b87659bf973a7116e9d9932f47 100644 (file)
@@ -2162,7 +2162,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."));