From 3df25babce5df2d26bc98114cd404d51c659c19f Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Wed, 11 Feb 2015 12:03:54 +0100 Subject: [ticket/13597] Modify variable-variable syntax to be compatible with PHP7 PHPBB3-13597 --- phpBB/includes/functions_privmsgs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/functions_privmsgs.php') diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php index 838c6a0fec..e693305246 100644 --- a/phpBB/includes/functions_privmsgs.php +++ b/phpBB/includes/functions_privmsgs.php @@ -1415,9 +1415,9 @@ function rebuild_header($check_ary) $_types = array('u', 'g'); foreach ($_types as $type) { - if (sizeof($$type)) + if (sizeof(${$type})) { - foreach ($$type as $id) + foreach (${$type} as $id) { $address[$type][$id] = $check_type; } -- cgit v1.2.1