[gnome-web-www] Add the gnome_mail_alias and gnome_jabber variables and report an error if they're left blank.



commit f2e0f16d0a1154ec2b891ee068483d1793ee33ae
Author: Andrea Veri <av gnome org>
Date:   Fri Apr 26 13:24:48 2013 +0200

    Add the gnome_mail_alias and gnome_jabber variables and report an error if they're left blank.

 theme/page-apply.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/theme/page-apply.php b/theme/page-apply.php
index 6550a41..ba5380b 100644
--- a/theme/page-apply.php
+++ b/theme/page-apply.php
@@ -17,9 +17,11 @@ if (array_key_exists('submit', $_POST)) {
     }
     
     $summary = trim(stripslashes($_POST['summary']));
+    $gnome_mail_alias = trim(stripslashes($_POST['gnome_mail_alias']));
+    $gnome_jabber = trim(stripslashes($_POST['gnome_jabber']));
     $previous_participation = trim(stripslashes($_POST['previous_participation']));
     
-    if (empty($full_name) || empty($email) || empty($summary)) {
+    if (empty($full_name) || empty($email) || empty($summary)) || empty($gnome_mail_alias) || 
empty($gnome_jabber) {
         $errors = true;
     }
     


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