Fix handling of queued downloadurls

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-10-03 12:53:26 +02:00
committed by Chris Morgan
parent ecbfa84600
commit e86ccd1390
3 changed files with 8 additions and 2 deletions

View File

@@ -120,10 +120,14 @@ class appData
function listSubmittedBy($iUserId, $bQueued = true)
{
$sExtra = '';
if($bQueued) // downloadurls are only queued together with versions
$sExtra = " AND appData.type != 'downloadurl' ";
$hResult = query_parameters("SELECT * FROM appData WHERE
appData.submitterId = '?'
AND
appData.state = '?'
appData.state = '?' $sExtra
ORDER BY appData.id",
$iUserId, $bQueued ? 'queued' : 'accepted');