diff --git a/inc/inc.ClassAuthenticationService.php b/inc/inc.ClassAuthenticationService.php index 41119877a..f04ac304d 100644 --- a/inc/inc.ClassAuthenticationService.php +++ b/inc/inc.ClassAuthenticationService.php @@ -66,7 +66,8 @@ class SeedDMS_AuthenticationService { public function authenticate($username, $password) { /* {{{ */ $user = null; foreach($this->services as $name => $service) { - $this->logger->log('Authentication service \''.$name.'\'', PEAR_LOG_INFO); + if($this->logger) + $this->logger->log('Authentication service \''.$name.'\'', PEAR_LOG_INFO); $user = $service->authenticate($username, $password); if($user === false) { $this->errors[$name] = false;