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:
parent
1c6535c0b4
commit
63e4750b4a
6 changed files with 38 additions and 26 deletions
|
@ -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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue