Adapted output when value is an array
authorfrancois <francois@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 28 Sep 2010 09:52:46 +0000 (09:52 +0000)
committerfrancois <francois@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 28 Sep 2010 09:52:46 +0000 (09:52 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/expressions_sandbox/trunk@38707 735d13b6-9817-0410-8766-e36946ffe9aa

pi1/class.tx_expressionssandbox_pi1.php

index 760c0e3..61f9b8a 100644 (file)
@@ -57,6 +57,9 @@ class tx_expressionssandbox_pi1 extends tslib_pibase {
                foreach ($expressions as $anExpression) {
                        try {
                                $result = tx_expressions_parser::evaluateExpression($anExpression);
+                               if (is_array($result)) {
+                                       $result = t3lib_div::view_array($result);
+                               }
                                $content .= '<p>' . sprintf($this->pi_getLL('expression_parsed'), '<code>' . $anExpression . '</code>', '<strong>' . $result . '</strong>') . '</p>';
                        }
                        catch (Exception $e) {