mirror of
https://github.com/friendica/friendica
synced 2024-12-23 13:20:21 +00:00
Force invite remaining variable to be integer in Content\Widget
- Addresses https://github.com/friendica/friendica/issues/7297#issuecomment-512786156
This commit is contained in:
parent
fc5aa0aa76
commit
3f85a921da
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class Widget
|
|||
$global_dir = Config::get('system', 'directory');
|
||||
|
||||
if (Config::get('system', 'invitation_only')) {
|
||||
$x = PConfig::get(local_user(), 'system', 'invites_remaining');
|
||||
$x = intval(PConfig::get(local_user(), 'system', 'invites_remaining'));
|
||||
if ($x || is_site_admin()) {
|
||||
$a->page['aside'] .= '<div class="side-link widget" id="side-invite-remain">'
|
||||
. L10n::tt('%d invitation available', '%d invitations available', $x)
|
||||
|
|
Loading…
Reference in a new issue