From: hickert Date: Mon, 17 Dec 2007 06:59:47 +0000 (+0000) Subject: Fixed PHP warning. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=db8fc551920b4ab546a0380e934ec11cbfb35e19;p=gosa.git 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 --- 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; } }