From: cajus Date: Wed, 4 Apr 2007 11:04:09 +0000 (+0000) Subject: Fixed array problem in regex X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3a3d48339e8f0856ee86a79319009c944a9691ed;p=gosa.git Fixed array problem in regex git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5978 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 65c9fa53a..7d9185482 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -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."));