From 3f85a921da8a7f2f630f26865c95c7db199b9c14 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 18 Jul 2019 08:42:07 -0400 Subject: [PATCH] Force invite remaining variable to be integer in Content\Widget - Addresses https://github.com/friendica/friendica/issues/7297#issuecomment-512786156 --- src/Content/Widget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/Widget.php b/src/Content/Widget.php index e8b08d427..a1482ae94 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -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'] .= '