summaryrefslogtreecommitdiff
path: root/classes/pref/labels.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-08-30 18:50:56 +0400
committerAndrew Dolgov <[email protected]>2012-08-31 12:13:47 +0400
commit6aff7845751e1671f436da6686209b414fdcfcc4 (patch)
tree412bfad8bdb8d23eebb84ff96ba6077e901f6d8b /classes/pref/labels.php
parentf9ebb32ca0a84ec5553d0494cdfc628753fcb36a (diff)
implement multiple rule/action filters
Diffstat (limited to 'classes/pref/labels.php')
-rw-r--r--classes/pref/labels.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/pref/labels.php b/classes/pref/labels.php
index 317f92738..a7f79146a 100644
--- a/classes/pref/labels.php
+++ b/classes/pref/labels.php
@@ -192,10 +192,10 @@ class Pref_Labels extends Handler_Protected {
$old_caption = db_escape_string($old_caption);
- db_query($this->link, "UPDATE ttrss_filters SET
+ db_query($this->link, "UPDATE ttrss_filters2_actions SET
action_param = '$caption' WHERE action_param = '$old_caption'
AND action_id = 7
- AND owner_uid = " . $_SESSION["uid"]);
+ AND filter_id IN (SELECT id FROM ttrss_filters2 WHERE owner_uid = ".$_SESSION["uid"].")");
print $_REQUEST["value"];
} else {