Fix downloadurl::unqueue()

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-01-22 22:10:09 +01:00
committed by Chris Morgan
parent 3e7ce62dde
commit 2f3657f196

View File

@@ -384,12 +384,12 @@ class downloadurl
function unQueue()
{
if(!$this->canEdit($this->iVersionId))
if($this->mustBeQueued())
return FALSE;
$hResult = query_parameters("UPDATE appData SET queued = '?'
$hResult = query_parameters("UPDATE appData SET state = '?'
WHERE id = '?'",
"false", $this->iId);
'accepted', $this->iId);
if(!$hResult)
return FALSE;