From 5affbe2e517833ffb48c61272aa276d4518bf47f Mon Sep 17 00:00:00 2001 From: willmendesneto Date: Sat, 14 Dec 2013 23:43:56 -0300 Subject: [PATCH] Fixbug in save_email.php file --- .gitignore | 1 + app/save_email.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 750a7e6..f0a0c14 100755 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ app/bower_components +app/*.json node_modules npm-debug.log dist diff --git a/app/save_email.php b/app/save_email.php index ea96988..77b7c5f 100755 --- a/app/save_email.php +++ b/app/save_email.php @@ -4,7 +4,7 @@ $filename = md5(date("Y-m-d-G-i-s.U")) . '.json'; $stringReturn = '

Ops! Ocorreu um erro ao cadastrar seu email. Tente novamente mais tarde =).

'; -if ( (isset( $_POST['nome'] && !empty($_POST['nome'])) && (isset($_POST['email']) && !empty($_POST['email'])) ) { +if ( (isset($_POST['nome']) && !empty($_POST['nome'])) && (isset($_POST['email']) && !empty($_POST['email'])) ) { $nome = $_POST['nome']; $email = $_POST['email']; $hora = date('r');