diff options
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/functions.php b/functions.php index 2ea1f856c..ba8c4e6a6 100644 --- a/functions.php +++ b/functions.php @@ -3867,6 +3867,8 @@ /* get first ref_id to count from */ + /* + $query = ""; if (DB_TYPE == "pgsql") { @@ -3880,11 +3882,11 @@ } $result = db_query($link, $query); - $first_id = db_fetch_result($result, 0, "id"); + $first_id = db_fetch_result($result, 0, "id"); */ + //AND post_int_id >= '$first_id' $query = "SELECT tag_name, COUNT(post_int_id) AS count FROM ttrss_tags WHERE owner_uid = ".$_SESSION["uid"]." - AND post_int_id >= '$first_id' GROUP BY tag_name ORDER BY count DESC LIMIT 50"; $result = db_query($link, $query); |