mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-06 23:26:05 +02:00
fix for log object does not exist in setup
This commit is contained in:
@ -241,9 +241,13 @@
|
|||||||
|
|
||||||
// connect to ldap server
|
// connect to ldap server
|
||||||
if (! $ds = ldap_connect($host))
|
if (! $ds = ldap_connect($host))
|
||||||
|
{
|
||||||
|
/* 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->message('F-Abort, Failed connecting to LDAP server');
|
||||||
$GLOBALS['phpgw']->log->commit();
|
$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;
|
||||||
|
Reference in New Issue
Block a user