]> 91.132.146.200 Git - insipid.git/commitdiff
do nothing if message is empty
authorBanana <banana@ironhide>
Sat, 3 Aug 2019 22:16:16 +0000 (00:16 +0200)
committerBanana <banana@ironhide>
Sat, 3 Aug 2019 22:16:16 +0000 (00:16 +0200)
webroot/view/_displaySubmitStatus.inc.php

index 3e3b6db07fe6b0b59b6c18d9b80a9daf61ca1ff8..7de6151d1c54290ce5c3ed6463b927aff78b4137 100644 (file)
@@ -8,6 +8,8 @@ if(!empty($submitFeedback)) {
        if(is_array($message)) {
                $message = implode("<br />", $message);
        }
+
+       if(!empty($message)) {
 ?>
        <div class="columns">
                <div class="column">
@@ -16,4 +18,7 @@ if(!empty($submitFeedback)) {
                        </div>
                </div>
        </div>
-<?php } ?>
+<?php
+       }
+}
+?>