do not try to update filter triggers if nothing was triggered
This commit is contained in:
parent
4cbc62d2a5
commit
5780a5d501
|
@ -783,9 +783,12 @@ class RSSUtils {
|
||||||
|
|
||||||
$matched_filter_ids = implode(",", array_map(function($f) { return $f['id']; }, $matched_filters));
|
$matched_filter_ids = implode(",", array_map(function($f) { return $f['id']; }, $matched_filters));
|
||||||
|
|
||||||
|
|
||||||
|
if ($matched_filter_ids) {
|
||||||
$fsth = $pdo->prepare("UPDATE ttrss_filters2 SET last_triggered = NOW() WHERE
|
$fsth = $pdo->prepare("UPDATE ttrss_filters2 SET last_triggered = NOW() WHERE
|
||||||
id IN (?) AND owner_uid = ?");
|
id IN (?) AND owner_uid = ?");
|
||||||
$fsth->execute([$matched_filter_ids, $owner_uid]);
|
$fsth->execute([$matched_filter_ids, $owner_uid]);
|
||||||
|
}
|
||||||
|
|
||||||
if (Debug::get_loglevel() >= Debug::$LOG_EXTENDED) {
|
if (Debug::get_loglevel() >= Debug::$LOG_EXTENDED) {
|
||||||
Debug::log("matched filters: ", Debug::$LOG_VERBOSE);
|
Debug::log("matched filters: ", Debug::$LOG_VERBOSE);
|
||||||
|
|
Loading…
Reference in New Issue