diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-06-13 08:06:51 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-06-13 08:06:51 +0400 |
commit | 74a3341e02a629e835961f3019b26d2b19ffbff4 (patch) | |
tree | 4601b315a0246e7a8c0d4a4c4592d97495755515 /plugins/CoreHome/DataTableRowAction | |
parent | 50dece7f4c45a89dcd8253e2c151b49b707f48c0 (diff) |
Throw exception for better error reporting
Diffstat (limited to 'plugins/CoreHome/DataTableRowAction')
-rw-r--r-- | plugins/CoreHome/DataTableRowAction/RowEvolution.php | 3 |
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."); |