another fix for log object does not exist in setup

This commit is contained in:
Miles Lott 2001-11-25 01:29:04 +00:00
parent 886f62667e
commit bd2a20dcd8

View File

@ -256,8 +256,11 @@
// bind as admin, we not to able to do everything // bind as admin, we not to able to do everything
if (! ldap_bind($ds,$dn,$passwd)) if (! ldap_bind($ds,$dn,$passwd))
{ {
$GLOBALS['phpgw']->log->message('F-Abort, Failed binding to LDAP server'); if(is_object($GLOBALS['phpgw']->log))
$GLOBALS['phpgw']->log->commit(); {
$GLOBALS['phpgw']->log->message('F-Abort, Failed binding to LDAP server');
$GLOBALS['phpgw']->log->commit();
}
printf("<b>Error: Can't bind to LDAP server: %s!</b><br>",$dn); printf("<b>Error: Can't bind to LDAP server: %s!</b><br>",$dn);
return False; return False;