From d6a1af00cba3574337da4eb78fc7efc107b6f9e5 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Tue, 16 Oct 2007 08:47:47 +0000 Subject: [PATCH] do not print non scalar values --- libraries/Error.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/Error.class.php b/libraries/Error.class.php index 31d6e1225..1b8b88814 100644 --- a/libraries/Error.class.php +++ b/libraries/Error.class.php @@ -336,8 +336,10 @@ class PMA_Error extends PMA_Message if (in_array($function, $include_functions)) { echo PMA_Error::relPath($arg); - } else { + } elseif (is_scalar($arg)) { echo gettype($arg) . ' ' . $arg; + } else { + echo gettype($arg); } }