From 00871b52073993735b489479a3ed8d46781ebecc Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Thu, 16 Oct 2014 14:47:09 +1030 Subject: [PATCH] Fixes #6724 --- code/modules/economy/EFTPOS.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/economy/EFTPOS.dm b/code/modules/economy/EFTPOS.dm index e08f1bba0ca..c9f1aa1533e 100644 --- a/code/modules/economy/EFTPOS.dm +++ b/code/modules/economy/EFTPOS.dm @@ -134,7 +134,7 @@ //create entry in the EFTPOS linked account transaction log var/datum/transaction/T = new() T.target_name = E.owner_name //D.owner_name - T.purpose = transaction_purpose + T.purpose = (transaction_purpose ? transaction_purpose : "None supplied.") T.amount = transaction_amount T.source_terminal = machine_id T.date = current_date_string @@ -182,7 +182,8 @@ else usr << "\icon[src]Account not found." if("trans_purpose") - transaction_purpose = input("Enter reason for EFTPOS transaction", "Transaction purpose") + var/choice = input("Enter reason for EFTPOS transaction", "Transaction purpose") + if(choice) transaction_purpose = choice if("trans_value") var/try_num = input("Enter amount for EFTPOS transaction", "Transaction amount") as num if(try_num < 0)