mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:30:04 +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
|
// connect to ldap server
|
||||||
if (! $ds = ldap_connect($host))
|
if (! $ds = ldap_connect($host))
|
||||||
{
|
{
|
||||||
$GLOBALS['phpgw']->log->message('F-Abort, Failed connecting to LDAP server');
|
/* log does not exist in setup(, yet) */
|
||||||
$GLOBALS['phpgw']->log->commit();
|
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);
|
printf("<b>Error: Can't connect to LDAP server %s!</b><br>",$host);
|
||||||
return False;
|
return False;
|
||||||
|
Loading…
Reference in New Issue
Block a user