Alexander Nicolaysen Sørnes : Fix adding downloadurls to versions that only have queued urls

Alexander Nicolaysen Sørnes asornes at winehq.org
Tue Jun 30 13:52:38 CDT 2009


Module: appdb
Branch: master
Commit: 0473f7bfc3f31eb3a58ab6fadbeae31af6988c62
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=0473f7bfc3f31eb3a58ab6fadbeae31af6988c62

Author: Alexander Nicolaysen Sørnes <alex at 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;
 




More information about the wine-cvs mailing list