diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 39b38ea955..a97cc1fd15 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -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("Error: Can't connect to LDAP server %s!
",$host); return False;