mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
check if logger is set before using it
This commit is contained in:
parent
197a6e8824
commit
882b87c885
|
@ -66,6 +66,7 @@ class SeedDMS_AuthenticationService {
|
||||||
public function authenticate($username, $password) { /* {{{ */
|
public function authenticate($username, $password) { /* {{{ */
|
||||||
$user = null;
|
$user = null;
|
||||||
foreach($this->services as $name => $service) {
|
foreach($this->services as $name => $service) {
|
||||||
|
if($this->logger)
|
||||||
$this->logger->log('Authentication service \''.$name.'\'', PEAR_LOG_INFO);
|
$this->logger->log('Authentication service \''.$name.'\'', PEAR_LOG_INFO);
|
||||||
$user = $service->authenticate($username, $password);
|
$user = $service->authenticate($username, $password);
|
||||||
if($user === false) {
|
if($user === false) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user