From: Hypolite Petovan Date: Thu, 18 Jul 2019 12:42:07 +0000 (-0400) Subject: Force invite remaining variable to be integer in Content\Widget X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3f85a921da8a7f2f630f26865c95c7db199b9c14;p=friendica.git Force invite remaining variable to be integer in Content\Widget - Addresses https://github.com/friendica/friendica/issues/7297#issuecomment-512786156 --- diff --git a/src/Content/Widget.php b/src/Content/Widget.php index e8b08d4278..a1482ae943 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'] .= '