From 8c7fa7d8d414b5201c36661fb4828d14e4c33c53 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Mon, 16 Aug 2021 18:14:02 +0200 Subject: Fix possible notices (#17886) * Fix possible notices * Ensure to query hash for deleted segments --- plugins/SegmentEditor/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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)); -- cgit v1.2.3