forked from extern/egroupware
fix for log object does not exist in setup
This commit is contained in:
parent
aaf0b21cf8
commit
886f62667e
@ -242,8 +242,12 @@
|
||||
// connect to ldap server
|
||||
if (! $ds = ldap_connect($host))
|
||||
{
|
||||
$GLOBALS['phpgw']->log->message('F-Abort, Failed connecting to LDAP server');
|
||||
$GLOBALS['phpgw']->log->commit();
|
||||
/* log does not exist in setup(, yet) */
|
||||
if(is_object($GLOBALS['phpgw']->log))
|
||||
{
|
||||
$GLOBALS['phpgw']->log->message('F-Abort, Failed connecting to LDAP server');
|
||||
$GLOBALS['phpgw']->log->commit();
|
||||
}
|
||||
|
||||
printf("<b>Error: Can't connect to LDAP server %s!</b><br>",$host);
|
||||
return False;
|
||||
|
Loading…
Reference in New Issue
Block a user