From db8fc551920b4ab546a0380e934ec11cbfb35e19 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 17 Dec 2007 06:59:47 +0000 Subject: [PATCH] Fixed PHP warning. - If login informations were wrong, there poped up some PHP warnings git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8130 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 812715bf0..b3e441aa0 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -348,7 +348,7 @@ function ldap_login_user ($username, $password) $attrs= $ldap->fetch(); $success = FALSE; foreach($verify_attr as $attr){ - if ($attrs[$attr][0] == $username){ + if(isset($attrs[$attr][0]) && $attrs[$attr][0] == $username){ $success = TRUE; } } -- 2.30.2