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');
|
$global_dir = Config::get('system', 'directory');
|
||||||
|
|
||||||
if (Config::get('system', 'invitation_only')) {
|
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()) {
|
if ($x || is_site_admin()) {
|
||||||
$a->page['aside'] .= '<div class="side-link widget" id="side-invite-remain">'
|
$a->page['aside'] .= '<div class="side-link widget" id="side-invite-remain">'
|
||||||
. L10n::tt('%d invitation available', '%d invitations available', $x)
|
. L10n::tt('%d invitation available', '%d invitations available', $x)
|
||||||
|
|
Loading…
Reference in a new issue