mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
check if logger is set before using it
This commit is contained in:
parent
197a6e8824
commit
882b87c885
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user