[gnome-web-www] Error handling for gnome_mail_alias.
- From: Andrea Veri <av src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-web-www] Error handling for gnome_mail_alias.
 
- Date: Mon, 29 Apr 2013 20:43:24 +0000 (UTC)
 
commit 5997ecf5817865ca3ed9411255f175d06302d2ed
Author: Andrea Veri <av gnome org>
Date:   Mon Apr 29 22:43:08 2013 +0200
    Error handling for gnome_mail_alias.
 theme/page-apply.php |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/theme/page-apply.php b/theme/page-apply.php
index ef98b3e..f8e93b5 100644
--- a/theme/page-apply.php
+++ b/theme/page-apply.php
@@ -20,10 +20,9 @@ if (array_key_exists('submit', $_POST)) {
        $gnome_mail_alias = trim(stripslashes($_POST['gnome_mail_alias']));
        $gnome_username= trim(stripslashes($_POST['gnome_username']));
     $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) || ($gnome_mail_alias == 'on' && 
empty($gnome_username))) {
         $errors = true;
     }
     
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]