withdraw: fix withdraw with no amount nor payment id

This commit is contained in:
moneromooo 2015-02-28 18:31:20 +00:00
parent 699cec1b7e
commit 5d1bbfc6a0
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ def Withdraw(link,cmd):
amount = GetParam(cmd,2)
paymentid = GetParam(cmd,3)
else:
if IsValidPaymentID(GetParam(cmd,2)):
if GetParam(cmd,2) and IsValidPaymentID(GetParam(cmd,2)):
amount = None
paymentid = GetParam(cmd,2)
else: