From bd2a20dcd8bf85ec903945afc530b75621efa47b Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 25 Nov 2001 01:29:04 +0000 Subject: [PATCH] another fix for log object does not exist in setup --- phpgwapi/inc/class.common.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;