diff --git a/appview.php b/appview.php index 598b26b..0c4715c 100644 --- a/appview.php +++ b/appview.php @@ -36,7 +36,7 @@ function display_bundle($appId) { $oApp = new Application($appId); $result = query_appdb("SELECT appFamily.appId, appName, description FROM appBundle, appFamily ". - "WHERE bundleId = $appId AND appBundle.appId = appFamily.appId"); + "WHERE appFamily.queued='false' AND bundleId = $appId AND appBundle.appId = appFamily.appId"); if(!$result || mysql_num_rows($result) == 0) { return; // do nothing diff --git a/include/application.php b/include/application.php index 790905d..d01a759 100644 --- a/include/application.php +++ b/include/application.php @@ -39,6 +39,7 @@ class Application { $sQuery = "SELECT appFamily.*, appVersion.versionId AS versionId FROM appFamily, appVersion WHERE appFamily.appId = appVersion.appId + AND appVersion.queued='false' AND appFamily.appId = ".$iAppId." ORDER BY versionName"; if($hResult = query_appdb($sQuery)) { diff --git a/include/category.php b/include/category.php index f3ccd46..b1dd916 100644 --- a/include/category.php +++ b/include/category.php @@ -44,7 +44,8 @@ class Category { */ $sQuery = "SELECT appId FROM appFamily - WHERE catId = ".$iCatId; + WHERE catId = ".$iCatId." + AND queued = 'false'"; if($hResult = query_appdb($sQuery)) { while($oRow = mysql_fetch_object($hResult)) diff --git a/search.php b/search.php index a25d4cd..c9125aa 100644 --- a/search.php +++ b/search.php @@ -13,6 +13,7 @@ require(BASE."include/application.php"); $sQuery = "SELECT * FROM appFamily WHERE appName != 'NONAME' + AND queued = 'false' AND appName LIKE '%".addslashes($_REQUEST['q'])."%' OR keywords LIKE '%".addslashes($_REQUEST['q'])."%' ORDER BY appName";