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>2015-08-13 19:38:57 +0300
committermattab <matthieu.aubry@gmail.com>2015-08-13 19:39:09 +0300
commit59bce9e787c45b28f48e413672e23cae541ed797 (patch)
treee4fca80e2a7bef6507459a07d2142f40769ca100
parent539a6195ce236ed6404a309116c844ec968d1758 (diff)
Use !isset instead of empty, as we need to use zero vaues
Refs https://github.com/piwik/piwik/issues/7948 Refs https://github.com/piwik/piwik/commit/b45e693a0844149d115f402f474ca68336a6a89d#commitcomment-12663022
-rw-r--r--plugins/ImageGraph/API.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ImageGraph/API.php b/plugins/ImageGraph/API.php
index 7cca475463..4e7b466b21 100644
--- a/plugins/ImageGraph/API.php
+++ b/plugins/ImageGraph/API.php
@@ -429,7 +429,7 @@ class API extends \Piwik\Plugin\API
$rowData = $rows[0]->getColumns(); // associative Array
foreach ($ordinateColumns as $column) {
- if(empty($rowData[$column])) {
+ if(!isset($rowData[$column])) {
continue;
}
$ordinateValue = $rowData[$column];