diff options
-rw-r--r-- | inc/infoutils.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index 56526ac54..f0a191bbe 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -262,6 +262,10 @@ function dbg($msg,$hidden=false){ */ function dbglog($msg){ global $conf; + if(is_object($msg) || is_array($msg)){ + $msg = print_r($msg,true); + } + $file = $conf['cachedir'].'/debug.log'; $fh = fopen($file,'a'); if($fh){ |