From 77555e3d02c0f8d1e98299610a4d1421ecde1652 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 4 Apr 2007 11:04:49 +0000 Subject: [PATCH] Fixed problem in newly introduced base_hook git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5979 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 e78c2f874..c9f009892 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -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.")); -- 2.30.2