Fix: Bulkbuying requires now items to be bought.

This commit is contained in:
seba 2011-10-11 01:34:07 +02:00
parent f6f0a0f114
commit 7f484ffc52
1 changed files with 6 additions and 0 deletions

View File

@ -145,6 +145,12 @@ class BuyableItemHandler(BaseHandler):
ret.write("\nThe items/deposists parameter have to be a list.\n")
return ret
if len(itemList) == 0:
ret = rc.BAD_REQUEST
ret.write("\nYour request contains no items/deposits.\n")
return ret
ids = {}
for item in itemList:
if not ids.has_key(item):