From 55c34157629264fe4ceca81e8f1d5ff9a6d577e1 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
Date: Sun, 22 Apr 2012 20:00:30 +0000
Subject: [PATCH] Hack to prevent 'array to string conversion' message

---
 inc/classes/main/class_BaseFrameworkSystem.php | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php
index adbb27c2..1104fed5 100644
--- a/inc/classes/main/class_BaseFrameworkSystem.php
+++ b/inc/classes/main/class_BaseFrameworkSystem.php
@@ -361,8 +361,15 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
 		} elseif (is_array($args)) {
 			// Some arguments are there
 			foreach ($args as $arg) {
-				// Add the type
-				$argsString .= $this->replaceControlCharacters($arg) . ' (' . gettype($arg);
+				// Add the value itself if not array. This prevents 'array to string conversion' message
+				if (is_array($arg)) {
+					$argsString .= 'Array';
+				} else {
+					$argsString .= $arg;
+				}
+
+				// Add data about the argument
+				$argsString .= ' (' . gettype($arg);
 
 				if (is_string($arg)) {
 					// Add length for strings
-- 
2.39.5