mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 12:02:41 +00:00
ensure that plain CakeLogInterface still works
This commit is contained in:
parent
8e8763d69d
commit
595cad84b3
3 changed files with 11 additions and 4 deletions
|
@ -374,8 +374,12 @@ class CakeLog {
|
|||
$scopes = array();
|
||||
if ($logger instanceof BaseLog) {
|
||||
$config = $logger->config();
|
||||
$types = $config['types'];
|
||||
$scopes = $config['scopes'];
|
||||
if (isset($config['types'])) {
|
||||
$types = $config['types'];
|
||||
}
|
||||
if (isset($config['scopes'])) {
|
||||
$scopes = $config['scopes'];
|
||||
}
|
||||
}
|
||||
if (is_string($scope)) {
|
||||
$inScope = in_array($scope, $scopes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue