mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-06-29 06:53:43 +02:00
LSsession :: isSubDnLSobject() : Fixed notice PHP
This commit is contained in:
parent
4ce6560504
commit
5f8db76d52
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue