From 85086b922292daa01cc8d640c625bc7515356a31 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 22 Jul 2006 18:17:38 +0000 Subject: [PATCH] r934: Status hiding for admin option is done --- index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index b210bfe..845c8f2 100644 --- a/index.php +++ b/index.php @@ -45,7 +45,8 @@ $count = $db->query_first(" SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "bug WHERE (!hidden OR (hidden AND productid IN (" . fetch_on_bits('canviewhidden') . "))) - AND productid IN (" . fetch_on_bits('canviewbugs') . ")" + AND productid IN (" . fetch_on_bits('canviewbugs') . ")" . ($bugsys->options['hidestatuses'] ? " + AND status NOT IN (" . $bugsys->options['hidestatuses'] . ")" : "") ); $pagination->total = $count['count']; @@ -54,7 +55,8 @@ $pagination->split_pages(); $bugs_fetch = $db->query(" SELECT * FROM " . TABLE_PREFIX . "bug WHERE productid IN (" . fetch_on_bits('canviewbugs') . ") - AND (!hidden OR (hidden AND productid IN (" . fetch_on_bits('canviewhidden') . "))) + AND (!hidden OR (hidden AND productid IN (" . fetch_on_bits('canviewhidden') . ")))" . ($bugsys->options['hidestatuses'] ? " + AND status NOT IN (" . $bugsys->options['hidestatuses'] . ")" : "") . " ORDER BY " . (can_perform('canviewhidden') ? "lastposttime" : "hiddenlastposttime") . " DESC LIMIT " . $pagination->fetch_limit($pagination->page - 1) . ", " . $pagination->perpage ); -- 2.22.5