From 786325a4bb976d92de54c472c2c3bd8a73cbef22 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Mon, 4 Jun 2012 22:24:13 +0200 Subject: [PATCH] Fix newline in code --- settings/ajax/lostpassword.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/settings/ajax/lostpassword.php b/settings/ajax/lostpassword.php index 9c31c9ce8d..c6df8551f5 100644 --- a/settings/ajax/lostpassword.php +++ b/settings/ajax/lostpassword.php @@ -8,11 +8,12 @@ OC_JSON::checkLoggedIn(); $l=OC_L10N::get('core'); // Get data -if( isset( $_POST['email'] ) && filter_var( $_POST['email'], FILTER_VALIDATE_EMAIL) ){ $email=trim($_POST['email']); +if( isset( $_POST['email'] ) && filter_var( $_POST['email'], FILTER_VALIDATE_EMAIL) ){ + $email=trim($_POST['email']); OC_Preferences::setValue(OC_User::getUser(),'settings','email',$email); OC_JSON::success(array("data" => array( "message" => $l->t("Email saved") ))); }else{ OC_JSON::error(array("data" => array( "message" => $l->t("Invalid email") ))); } -?> \ No newline at end of file +?>