1
0
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:
Klas Lindfors 2014-09-23 16:46:28 +02:00
parent 7a4e2d37e3
commit 7083c8f625

View File

@ -55,6 +55,9 @@ class Log
function log($priority, $message, $arr=null){
if (is_array($arr)) {
foreach($arr as $key=>$value){
if (is_array($value)) {
$value = implode(":", $value);
}
$message.=" $key=$value ";
}
}