mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-17 04:45:14 +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
|
@ -97,8 +97,8 @@ function testdrive_cron($a,$b) {
|
|||
}
|
||||
|
||||
function testdrive_enotify(&$a, &$b) {
|
||||
if (x($b, 'params') && $b['params']['type'] == NOTIFY_SYSTEM
|
||||
&& x($b['params'], 'system_type') && $b['params']['system_type'] === 'testdrive_expire') {
|
||||
if (!empty($b['params']) && $b['params']['type'] == NOTIFY_SYSTEM
|
||||
&& !empty($b['params']['system_type']) && $b['params']['system_type'] === 'testdrive_expire') {
|
||||
$b['itemlink'] = $a->getBaseURL();
|
||||
$b['epreamble'] = $b['preamble'] = L10n::t('Your account on %s will expire in a few days.', Config::get('system', 'sitename'));
|
||||
$b['subject'] = L10n::t('Your Friendica test account is about to expire.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue