Don't show queued apps and versions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user