diff options
Diffstat (limited to 'modules/DataTable.php')
-rw-r--r-- | modules/DataTable.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/DataTable.php b/modules/DataTable.php index 5af22f1175..fea3f2da39 100644 --- a/modules/DataTable.php +++ b/modules/DataTable.php @@ -720,7 +720,12 @@ class Piwik_DataTable * ) */ public function loadFromSimpleArray( $array ) - { + { + if(count($array) === 0) + { + return; + } + // we define an exception we may throw if at one point we notice that we cannot handle the data structure $e = new Exception(" Data structure returned is not convertible in the requested format.". " Try to call this method with the parameters '&format=original&serialize=1'". |