mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-16 20:35:15 +02:00
Replace x() by !empty() or defaults()
- Remove extraneous parentheses around !empty()
This commit is contained in:
parent
074493a29e
commit
d836593a3b
42 changed files with 80 additions and 80 deletions
|
@ -125,7 +125,7 @@ function libravatar_addon_admin_post(&$a)
|
|||
{
|
||||
BaseModule::checkFormSecurityToken('libravatarrsave');
|
||||
|
||||
$default_avatar = ((x($_POST, 'avatar')) ? Strings::escapeTags(trim($_POST['avatar'])) : 'identicon');
|
||||
$default_avatar = (!empty($_POST['avatar']) ? Strings::escapeTags(trim($_POST['avatar'])) : 'identicon');
|
||||
Config::set('libravatar', 'default_avatar', $default_avatar);
|
||||
info(L10n::t('Libravatar settings updated.') .EOL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue