From f0e1e02f039b3191c67a44769e255d59bf6cfbbd Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sat, 25 Mar 2017 01:33:38 +0100 Subject: [PATCH] Admin/Screenshots * do not display deleted screenshots on initial listing --- includes/community.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/community.class.php b/includes/community.class.php index a68ebc28..7d0b47ca 100644 --- a/includes/community.class.php +++ b/includes/community.class.php @@ -309,14 +309,14 @@ class CommunityContent public static function getScreenshotPagesForManager($all, &$nFound) { - // i GUESS .. ss_getALL ? everything : unapproved + // i GUESS .. ss_getALL ? everything : pending $nFound = 0; $pages = DB::Aowow()->select(' SELECT s.`type`, s.`typeId`, count(1) AS "count", MIN(s.`date`) AS "date" FROM ?_screenshots s {WHERE (s.status & ?d) = 0} GROUP BY s.`type`, s.`typeId`', - $all ? DBSIMPLE_SKIP : CC_FLAG_APPROVED + $all ? DBSIMPLE_SKIP : CC_FLAG_APPROVED | CC_FLAG_DELETED ); if ($pages)