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

@ -255,9 +255,12 @@
// bind as admin, we not to able to do everything
if (! ldap_bind($ds,$dn,$passwd))
{
if(is_object($GLOBALS['phpgw']->log))
{
$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);
return False;