Fix: Bulkbuying requires now items to be bought.
This commit is contained in:
parent
f6f0a0f114
commit
7f484ffc52
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue