Skip to content

Commit

Permalink
[#13438] - Sanity check for someone not passing a string
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Dec 7, 2018
1 parent eb9dc2f commit feb6dd9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions phalcon/logger.zep
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ class Logger implements LoggerInterface
* this->excluded array
*/
for adapter in adapters {
if fetch excluded, registered[adapter] {
let this->excluded[] = excluded;
if typeof adapter === "string" {
if fetch excluded, registered[adapter] {
let this->excluded[] = excluded;
}
}
}

Expand Down

0 comments on commit feb6dd9

Please sign in to comment.