diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-06-04 22:24:13 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-06-04 22:24:17 +0200 |
commit | 786325a4bb976d92de54c472c2c3bd8a73cbef22 (patch) | |
tree | 94c0f5bb517cdd73011d47401485f865930f8823 /settings/ajax | |
parent | 091b343d5cc2766eb84d49b5f2c3c691b5d41a18 (diff) | |
download | nextcloud-server-786325a4bb976d92de54c472c2c3bd8a73cbef22.tar.gz nextcloud-server-786325a4bb976d92de54c472c2c3bd8a73cbef22.zip |
Fix newline in code
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/lostpassword.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/settings/ajax/lostpassword.php b/settings/ajax/lostpassword.php index 9c31c9ce8da..c6df8551f52 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 +?> |