more coding convention applied:

- added curly braces
- added spaces where needed
- $r only needs to be tested with dbm::is_result()
- made SQL keywords all uper-case

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-01-23 09:50:25 +01:00 committed by Roland Haeder
commit 63e4750b4a
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
6 changed files with 38 additions and 26 deletions

View file

@ -397,7 +397,7 @@ function settings_post(App $a) {
dbesc($password),
intval(local_user())
);
if($r) {
if ($r) {
info( t('Password changed.') . EOL);
} else {
notice( t('Password update failed. Please try again.') . EOL);
@ -602,8 +602,9 @@ function settings_post(App $a) {
dbesc($language),
intval(local_user())
);
if($r)
if ($r) {
info( t('Settings updated.') . EOL);
}
// clear session language
unset($_SESSION['language']);
@ -622,7 +623,7 @@ function settings_post(App $a) {
);
if($name_change) {
if ($name_change) {
q("UPDATE `contact` SET `name` = '%s', `name-date` = '%s' WHERE `uid` = %d AND `self`",
dbesc($username),
dbesc(datetime_convert()),