diff options
author | Mario <mario@mariovavti.com> | 2022-10-20 13:16:03 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-10-20 13:16:03 +0000 |
commit | bf434818d7cfac6bf29482d4bb07fc567de2fc90 (patch) | |
tree | fc50a3cafce38134d758767caec1ffea8da8fdcf /Zotlabs/Module/Tokens.php | |
parent | 03aeb888322e792ccb17593761f1f93ad2906c7e (diff) | |
download | volse-hubzilla-bf434818d7cfac6bf29482d4bb07fc567de2fc90.tar.gz volse-hubzilla-bf434818d7cfac6bf29482d4bb07fc567de2fc90.tar.bz2 volse-hubzilla-bf434818d7cfac6bf29482d4bb07fc567de2fc90.zip |
fix php warnings
Diffstat (limited to 'Zotlabs/Module/Tokens.php')
-rw-r--r-- | Zotlabs/Module/Tokens.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Tokens.php b/Zotlabs/Module/Tokens.php index a41003f6b..701f29c19 100644 --- a/Zotlabs/Module/Tokens.php +++ b/Zotlabs/Module/Tokens.php @@ -282,15 +282,15 @@ class Tokens extends Controller { } $tpl = get_markup_template("tokens.tpl"); - $o .= replace_macros($tpl, array( + $o = replace_macros($tpl, array( '$form_security_token' => get_form_security_token('tokens'), '$permcat' => ['permcat', t('Select a role for this guest'), $current_permcat, '', $permcats], '$title' => t('Guest Access'), '$desc' => $desc, '$atoken' => $atoken, - '$name' => array('name', t('Login Name') . ' <span class="required">*</span>', (($atoken) ? $atoken['atoken_name'] : ''),''), - '$token'=> array('token', t('Login Password') . ' <span class="required">*</span>',(($atoken) ? $atoken['atoken_token'] : new_token()), ''), - '$expires'=> array('expires', t('Expires (yyyy-mm-dd)'), (($atoken['atoken_expires'] && $atoken['atoken_expires'] > NULL_DATE) ? datetime_convert('UTC',date_default_timezone_get(),$atoken['atoken_expires']) : ''), ''), + '$name' => array('name', t('Login Name') . ' <span class="required">*</span>', $atoken['atoken_name'] ?? '',''), + '$token'=> array('token', t('Login Password') . ' <span class="required">*</span>', $atoken['atoken_token'] ?? new_token(), ''), + '$expires'=> array('expires', t('Expires (yyyy-mm-dd)'), ((isset($atoken['atoken_expires']) && $atoken['atoken_expires'] > NULL_DATE) ? datetime_convert('UTC',date_default_timezone_get(),$atoken['atoken_expires']) : ''), ''), '$submit' => t('Submit'), '$delete' => t('Delete') )); |