Merge pull request #7405 from MrPetovan/bug/fatal-errors
Force invite remaining variable to be integer in Content\Widget
This commit is contained in:
commit
75ebd4810d
|
@ -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