mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-23 08:43:02 +02:00
[ticket/14972] replace all occurrences of sizeof() with the count()
PHPBB3-14972
This commit is contained in:
@@ -114,7 +114,7 @@ function view_folder($id, $mode, $folder_id, $folder)
|
||||
);
|
||||
|
||||
// Okay, lets dump out the page ...
|
||||
if (sizeof($folder_info['pm_list']))
|
||||
if (count($folder_info['pm_list']))
|
||||
{
|
||||
$address_list = array();
|
||||
|
||||
@@ -236,7 +236,7 @@ function view_folder($id, $mode, $folder_id, $folder)
|
||||
$_types = array('u', 'g');
|
||||
foreach ($_types as $ug_type)
|
||||
{
|
||||
if (isset($address_temp[$message_id][$ug_type]) && sizeof($address_temp[$message_id][$ug_type]))
|
||||
if (isset($address_temp[$message_id][$ug_type]) && count($address_temp[$message_id][$ug_type]))
|
||||
{
|
||||
if (!isset($address[$message_id][$ug_type]))
|
||||
{
|
||||
@@ -269,8 +269,8 @@ function view_folder($id, $mode, $folder_id, $folder)
|
||||
|
||||
// There is the chance that all recipients of the message got deleted. To avoid creating
|
||||
// exports without recipients, we add a bogus "undisclosed recipient".
|
||||
if (!(isset($address[$message_id]['g']) && sizeof($address[$message_id]['g'])) &&
|
||||
!(isset($address[$message_id]['u']) && sizeof($address[$message_id]['u'])))
|
||||
if (!(isset($address[$message_id]['g']) && count($address[$message_id]['g'])) &&
|
||||
!(isset($address[$message_id]['u']) && count($address[$message_id]['u'])))
|
||||
{
|
||||
$address[$message_id]['u'] = array();
|
||||
$address[$message_id]['u']['to'] = array();
|
||||
|
Reference in New Issue
Block a user