~singpolyma/jmp-pay

2f06095ff5c125f8f95dc5d4929de5ae3a121eb0 — Stephen Paul Weber 1 year, 3 months ago b82226b
empty array is not falsy
1 files changed, 1 insertions(+), 1 deletions(-)

M config.ru
M config.ru => config.ru +1 -1
@@ 180,7 180,7 @@ class UnknownTransactions
		values = tx_hashes.map do |tx_hash|
			"('#{DB.escape_string(tx_hash)}/#{DB.escape_string(address)}')"
		end
		return [] unless values
		return [] if values.empty?
		DB.exec_params(<<-SQL)
			SELECT transaction_id FROM
				(VALUES #{values.join(',')}) AS t(transaction_id)