diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index a97cc1fd15..f86ee5882e 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -256,8 +256,11 @@ // bind as admin, we not to able to do everything if (! ldap_bind($ds,$dn,$passwd)) { - $GLOBALS['phpgw']->log->message('F-Abort, Failed binding to LDAP server'); - $GLOBALS['phpgw']->log->commit(); + if(is_object($GLOBALS['phpgw']->log)) + { + $GLOBALS['phpgw']->log->message('F-Abort, Failed binding to LDAP server'); + $GLOBALS['phpgw']->log->commit(); + } printf("Error: Can't bind to LDAP server: %s!
",$dn); return False;