Commit ed339253f0d80d76abeece939cb64c433dcbe1e7:
    check for empty

Branch: refs/heads/master
Author: Sam Ruby <[email protected]>
Committer: Sam Ruby <[email protected]>
Pusher: rubys <[email protected]>

------------------------------------------------------------
www/treasurer/bill-upload.cgi                                | +++ -
------------------------------------------------------------
4 changes: 3 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/treasurer/bill-upload.cgi b/www/treasurer/bill-upload.cgi
index a4d6587..0314df5 100755
--- a/www/treasurer/bill-upload.cgi
+++ b/www/treasurer/bill-upload.cgi
@@ -73,7 +73,9 @@ _html do
       _pre 'Destination is required', class: '_stderr'
     else
       # append funding source to message, if present
-      @message += "\n\nFunding source: #{@source}" if @source
+      if @source and not @source.empty?
+        @message += "\n\nFunding source: #{@source}" 
+      end
       
       # perform all operations in a temporary directory
       Dir.mktmpdir do |tmpdir|

Reply via email to