LSsession :: isSubDnLSobject() : Fixed notice PHP

This commit is contained in:
Benjamin Renard 2010-11-16 19:34:57 +01:00
parent 4ce6560504
commit 5f8db76d52

View file

@ -2067,7 +2067,7 @@ class LSsession {
*/
public static function isSubDnLSobject($type) {
$result = false;
if (is_array(self :: $ldapServer['subDn']['LSobject'])) {
if (isset(self :: $ldapServer['subDn']['LSobject']) && is_array(self :: $ldapServer['subDn']['LSobject'])) {
foreach(self :: $ldapServer['subDn']['LSobject'] as $key => $value) {
if ($key==$type) {
$result=true;