mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
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