Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-08-04 00:44:33 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-08-06 11:02:56 +0400
commit49b24c2e0cfbc1839b80d95f67f04f4420d8630f (patch)
tree5f3beef4c2fb07e5c141d358287f3a7972243a25 /core/Piwik.php
parent6da08c8c9dfa30d6925a40fe75110c10a3e7ada9 (diff)
refs #5896 started to move rendering code from response builder in other classes which also allows plugins to define their own render formats
Diffstat (limited to 'core/Piwik.php')
-rw-r--r--core/Piwik.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/core/Piwik.php b/core/Piwik.php
index 4c4f6fba74..befe249923 100644
--- a/core/Piwik.php
+++ b/core/Piwik.php
@@ -742,6 +742,23 @@ class Piwik
return false;
}
+ public static function isMultiDimensionalArray($array)
+ {
+ $first = reset($array);
+ foreach ($array as $first) {
+ if (is_array($first)) {
+ foreach ($first as $value) {
+ // Yes, this is a multi dim array
+ if (is_array($value)) {
+ return true;
+ }
+ }
+ }
+ }
+
+ return false;
+ }
+
/**
* Returns the class name of an object without its namespace.
*