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:
Hypolite Petovan 2019-07-18 08:42:07 -04:00
parent fc5aa0aa76
commit 3f85a921da

View file

@ -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)