[gnome-web-www] Show error message only if errors were found



commit 490df9f4b762ed8fcc074f43600851038bd95744
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Wed Jun 5 13:24:08 2019 +0200

    Show error message only if errors were found

 theme/page-apply.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/theme/page-apply.php b/theme/page-apply.php
index 82b4e67..26801c4 100644
--- a/theme/page-apply.php
+++ b/theme/page-apply.php
@@ -96,7 +96,7 @@ if (array_key_exists('submit', $_POST)) {
 
 <h2 style="text-align: center;">Application Form</h2>
 
-<?php echo "Some of required fields in the form are missing. Please fill them and submit again."; ?>
+<?php if ($errors) echo "Some of required fields in the form are missing. Please fill them and submit 
again."; ?>
 
 <form action="" method="post" id="application_form">
 
@@ -163,7 +163,7 @@ if (array_key_exists('submit', $_POST)) {
         Processing will be much quicker if you provide links. Please tell us whether you were an existing
         Foundation member or have done something relevant for the GNOME Foundation in the past.
     </p>
-    <textarea name="summary">"<?php echo htmlspecialchars($summary);?>"</textarea>
+    <textarea name="summary"><?php echo htmlspecialchars($summary);?></textarea>
 </div>
 
 <h3>References</h3>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]