projects
/
core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0833090
)
Hack to prevent 'array to string conversion' message
author
Roland Häder
<roland@mxchange.org>
Sun, 22 Apr 2012 20:00:30 +0000
(20:00 +0000)
committer
Roland Häder
<roland@mxchange.org>
Sun, 22 Apr 2012 20:00:30 +0000
(20:00 +0000)
inc/classes/main/class_BaseFrameworkSystem.php
patch
|
blob
|
history
diff --git
a/inc/classes/main/class_BaseFrameworkSystem.php
b/inc/classes/main/class_BaseFrameworkSystem.php
index adbb27c2e9f34337abfb277c5d1a7c59bc7b0ee3..1104fed5c6d265267c72bce2795128162a675711 100644
(file)
--- 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