]> git.wh0rd.org Git - tt-rss.git/commitdiff
search dialog: fix display of current label
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 5 May 2008 07:19:52 +0000 (08:19 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 5 May 2008 07:19:52 +0000 (08:19 +0100)
functions.php

index 4ed1f4b66ce7c2e32be4d73993ab9b899f3fd0c0..a815d4947b09270e4be6a582a92c5073b3838f00 100644 (file)
                } else if ($id == -3) {
                        return __("Fresh articles");
                } else if ($id < -10) {
-                       $label_id = -10 - $id;
+                       $label_id = -$id - 11;
                        $result = db_query($link, "SELECT description FROM ttrss_labels WHERE id = '$label_id'");
                        if (db_num_rows($result) == 1) {
                                return db_fetch_result($result, 0, "description");