From: cajus Date: Wed, 4 Apr 2007 11:04:49 +0000 (+0000) Subject: Fixed problem in newly introduced base_hook X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=77555e3d02c0f8d1e98299610a4d1421ecde1652;p=gosa.git 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 --- 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."));