Module: appdb
Branch: master
Commit: 0473f7bfc3f31eb3a58ab6fadbeae31af6988c62
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=0473f7bfc3f31eb3a58ab6fa…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Date: Tue Jun 30 20:51:14 2009 +0200
Fix adding downloadurls to versions that only have queued urls
---
include/downloadurl.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/downloadurl.php b/include/downloadurl.php
index 4b0498d..ca903bb 100644
--- a/include/downloadurl.php
+++ b/include/downloadurl.php
@@ -169,7 +169,7 @@ class downloadurl
return FALSE;
if(!($hResult = query_parameters("SELECT COUNT(*) as num FROM appData
- WHERE TYPE = '?' AND versionId = '?'",
+ WHERE TYPE = '?' AND versionId = '?' AND state = 'accepted'",
"downloadurl", $aValues["iVersionId"])))
return FALSE;