Alexander Nicolaysen Sørnes : Fix downloadurl::unqueue()
Module: appdb Branch: master Commit: 2f3657f19600f7020d3a4485747605ebbad9c62d URL: http://source.winehq.org/git/appdb.git/?a=commit;h=2f3657f19600f7020d3a44857... Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Tue Jan 22 22:10:09 2008 +0100 Fix downloadurl::unqueue() --- include/downloadurl.php | 6 +++--- 1 files 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;
participants (1)
-
Chris Morgan