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:
authormattab <matthieu.aubry@gmail.com>2014-06-13 08:06:51 +0400
committermattab <matthieu.aubry@gmail.com>2014-06-13 08:06:51 +0400
commit74a3341e02a629e835961f3019b26d2b19ffbff4 (patch)
tree4601b315a0246e7a8c0d4a4c4592d97495755515 /plugins/CoreHome/DataTableRowAction/RowEvolution.php
parent50dece7f4c45a89dcd8253e2c151b49b707f48c0 (diff)
Throw exception for better error reporting
Diffstat (limited to 'plugins/CoreHome/DataTableRowAction/RowEvolution.php')
-rw-r--r--plugins/CoreHome/DataTableRowAction/RowEvolution.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/CoreHome/DataTableRowAction/RowEvolution.php b/plugins/CoreHome/DataTableRowAction/RowEvolution.php
index 2fb65b40b4..915139d300 100644
--- a/plugins/CoreHome/DataTableRowAction/RowEvolution.php
+++ b/plugins/CoreHome/DataTableRowAction/RowEvolution.php
@@ -86,6 +86,9 @@ class RowEvolution
if (empty($this->apiMethod)) throw new Exception("Parameter apiMethod not set.");
$this->label = ResponseBuilder::getLabelFromRequest($_GET);
+ if(!is_array($this->label)) {
+ throw new Exception("Expected label to be an array, got instead: " . $this->label);
+ }
$this->label = $this->label[0];
if ($this->label === '') throw new Exception("Parameter label not set.");