From: Andrew Dolgov Date: Mon, 5 May 2008 07:19:52 +0000 (+0100) Subject: search dialog: fix display of current label X-Git-Tag: 1.2.23-final~145 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=76626c72f81fcdb0f562bfbdfdf51b7e735dc42d;p=tt-rss.git search dialog: fix display of current label --- diff --git a/functions.php b/functions.php index 4ed1f4b6..a815d494 100644 --- a/functions.php +++ b/functions.php @@ -2866,7 +2866,7 @@ } 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");