Skip to content

Commit

Permalink
[asp.net] Fix for bug #636475. A typo caused ads not to be matched in…
Browse files Browse the repository at this point in the history
… ChooseAd

The second loop over the ads hashtable must not reject an app if the keyword filter is empty.
  • Loading branch information
grendello committed Sep 7, 2010
1 parent b40cb0c commit a8c3708
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -143,7 +143,7 @@ Hashtable ChooseAd ()
int r = new Random ().Next (total_imp);

foreach (Hashtable a in ads) {
if (keywordFilterEmpty && KeywordFilter != (string) a ["Keyword"])
if (!keywordFilterEmpty && KeywordFilter != (string) a ["Keyword"])
continue;
cur_imp += a ["Impressions"] != null ? int.Parse ((string) a ["Impressions"]) : 1;

Expand Down

0 comments on commit a8c3708

Please sign in to comment.