From ef64981a1bb6a9e7e402cd590ec04d46c58713b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Mon, 12 May 2008 21:45:42 +0200 Subject: [PATCH] Fix code for getting random apps with screenshots on front page --- include/util.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/util.php b/include/util.php index 719e0f9..e878ae6 100644 --- a/include/util.php +++ b/include/util.php @@ -325,8 +325,9 @@ function outputTopXRowAppsFromRating($sRating, $iNumApps) FROM appVersion, appData WHERE appVersion.rating = '$sRating' AND appVersion.versionId = appData.versionId + AND appVersion.state = 'accepted' AND appData.type = 'screenshot' - AND appData.queued = 'false'"; + AND appData.state = 'accepted'"; /* make sure we exclude any apps we've already output */ foreach($aVersionId as $key=>$value)