From 3a3d48339e8f0856ee86a79319009c944a9691ed Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 4 Apr 2007 11:04:09 +0000 Subject: [PATCH] Fixed array problem in regex git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5978 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.")); -- 2.30.2