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:
authorStefan Giehl <stefan@matomo.org>2021-08-16 19:14:02 +0300
committerGitHub <noreply@github.com>2021-08-16 19:14:02 +0300
commit8c7fa7d8d414b5201c36661fb4828d14e4c33c53 (patch)
tree95a65fdf0c71dd4c28c78ba7fd7d1620d8892905 /plugins
parent331e69eb1f2c022afb943114000aa60a4d93b1ac (diff)
Fix possible notices (#17886)
* Fix possible notices * Ensure to query hash for deleted segments
Diffstat (limited to 'plugins')
-rw-r--r--plugins/SegmentEditor/Model.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SegmentEditor/Model.php b/plugins/SegmentEditor/Model.php
index f876d2a46c..dcd18c1e3b 100644
--- a/plugins/SegmentEditor/Model.php
+++ b/plugins/SegmentEditor/Model.php
@@ -139,7 +139,7 @@ class Model
public function getSegmentsDeletedSince(Date $date)
{
$dateStr = $date->getDatetime();
- $sql = "SELECT DISTINCT definition, enable_only_idsite FROM " . Common::prefixTable('segment')
+ $sql = "SELECT DISTINCT `definition`, `enable_only_idsite`, `hash` FROM " . Common::prefixTable('segment')
. " WHERE deleted = 1 AND ts_last_edit >= ?";
$deletedSegments = Db::fetchAll($sql, array($dateStr));