mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-07-01 07: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) {
|
public static function isSubDnLSobject($type) {
|
||||||
$result = false;
|
$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) {
|
foreach(self :: $ldapServer['subDn']['LSobject'] as $key => $value) {
|
||||||
if ($key==$type) {
|
if ($key==$type) {
|
||||||
$result=true;
|
$result=true;
|
||||||
|
|
Loading…
Reference in a new issue