You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/03/30 22:36:01 UTC

[whimsy.git] [1/1] Commit ed33925: check for empty

Commit ed339253f0d80d76abeece939cb64c433dcbe1e7:
    check for empty


Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>

------------------------------------------------------------
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|