From 7083c8f6258b3d124940e001ee653371826cdd6d Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Tue, 23 Sep 2014 16:46:28 +0200 Subject: [PATCH] make sure that we only log strings --- ykval-log.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ykval-log.php b/ykval-log.php index 3fe49b7..a4c386d 100644 --- a/ykval-log.php +++ b/ykval-log.php @@ -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 "; } }