From 2f3657f19600f7020d3a4485747605ebbad9c62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Tue, 22 Jan 2008 22:10:09 +0100 Subject: [PATCH] Fix downloadurl::unqueue() --- include/downloadurl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/downloadurl.php b/include/downloadurl.php index 6ffce94..c4346ef 100644 --- a/include/downloadurl.php +++ b/include/downloadurl.php @@ -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;