Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Fixbug in save_email.php file
Browse files Browse the repository at this point in the history
  • Loading branch information
willmendesneto committed Dec 15, 2013
1 parent c0eb210 commit 5affbe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
app/bower_components
app/*.json
node_modules
npm-debug.log
dist
Expand Down
2 changes: 1 addition & 1 deletion app/save_email.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

$filename = md5(date("Y-m-d-G-i-s.U")) . '.json';
$stringReturn = '<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert">×</button><p>Ops! Ocorreu um erro ao cadastrar seu email. Tente novamente mais tarde =).</p></div>';
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');
Expand Down

0 comments on commit 5affbe2

Please sign in to comment.