mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
* Filemanager/Mail/LDAP/UCS: fix not working sharing, if accounts are stored in ldap
$GLOBALS[egw]->ldap returns NULL, which should not happen as egw objects checks for isset, anyway checking the object here fixes the problem
This commit is contained in:
parent
2f33904af0
commit
798902542e
@ -317,7 +317,7 @@ class addressbook_ldap
|
|||||||
function connect($admin = false)
|
function connect($admin = false)
|
||||||
{
|
{
|
||||||
// if egw object does not yet exists (eg. in sharing), we have to use our own ldap instance!
|
// if egw object does not yet exists (eg. in sharing), we have to use our own ldap instance!
|
||||||
$ldap = isset($GLOBALS['egw']) ? $GLOBALS['egw']->ldap : new ldap();
|
$ldap = isset($GLOBALS['egw']) && is_a($GLOBALS['egw']->ldap, 'ldap') ? $GLOBALS['egw']->ldap : new ldap();
|
||||||
|
|
||||||
if ($admin)
|
if ($admin)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user