]> git.wh0rd.org Git - tt-rss.git/commitdiff
get_article_tags: handle multiple ref_ids
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 21 Feb 2007 07:11:51 +0000 (08:11 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 21 Feb 2007 07:11:51 +0000 (08:11 +0100)
functions.php

index 5dea055618749808108ecf452e751fc6bf5b71d9..f6081b16416ff3b3353031cde58c890890d32524 100644 (file)
 
                $tmp_result = db_query($link, "SELECT DISTINCT tag_name FROM
                        ttrss_tags WHERE post_int_id = (SELECT int_id FROM ttrss_user_entries WHERE
-                               ref_id = '$a_id' AND owner_uid = '".$_SESSION["uid"]."') ORDER BY tag_name");
+                               ref_id = '$a_id' AND owner_uid = '".$_SESSION["uid"]."' LIMIT 1) ORDER BY tag_name");
 
                $tags = array();