mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-08 03:54:20 +01:00
make sure that we only log strings
This commit is contained in:
parent
7a4e2d37e3
commit
7083c8f625
@ -55,6 +55,9 @@ class Log
|
|||||||
function log($priority, $message, $arr=null){
|
function log($priority, $message, $arr=null){
|
||||||
if (is_array($arr)) {
|
if (is_array($arr)) {
|
||||||
foreach($arr as $key=>$value){
|
foreach($arr as $key=>$value){
|
||||||
|
if (is_array($value)) {
|
||||||
|
$value = implode(":", $value);
|
||||||
|
}
|
||||||
$message.=" $key=$value ";
|
$message.=" $key=$value ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user