phpBB

Code Changes

File: includes/functions_mcp.php

  Unmodified   Added   Modified   Removed
Line 113Line 113

$topics = array();



$topics = array();


	if (!sizeof($topic_ids))

	if (!count($topic_ids))

	{
return array();
}

	{
return array();
}

Line 130Line 130
		$cache_topic_ids = array();
}


		$cache_topic_ids = array();
}


	if (sizeof($topic_ids))

	if (count($topic_ids))

	{
$sql_array = array(
'SELECT' => 't.*, f.*',

	{
$sql_array = array(
'SELECT' => 't.*, f.*',

Line 197Line 197
*/
function phpbb_get_post_data($post_ids, $acl_list = false, $read_tracking = false)
{

*/
function phpbb_get_post_data($post_ids, $acl_list = false, $read_tracking = false)
{

	global $db, $auth, $config, $user;

	global $db, $auth, $config, $user, $phpbb_container;


$rowset = array();



$rowset = array();


	if (!sizeof($post_ids))

	if (!count($post_ids))

	{
return array();
}

	{
return array();
}

Line 245Line 245
	$sql = $db->sql_build_query('SELECT', $sql_array);
$result = $db->sql_query($sql);
unset($sql_array);

	$sql = $db->sql_build_query('SELECT', $sql_array);
$result = $db->sql_query($sql);
unset($sql_array);

 

$phpbb_content_visibility = $phpbb_container->get('content.visibility');


while ($row = $db->sql_fetchrow($result))
{


while ($row = $db->sql_fetchrow($result))
{

Line 253Line 255
			continue;
}


			continue;
}


		if ($row['post_visibility'] != ITEM_APPROVED && !$auth->acl_get('m_approve', $row['forum_id']))

		if (!$phpbb_content_visibility->is_visible('post', $row['forum_id'], $row))

		{
// Moderators without the permission to approve post should at least not see them. ;)
continue;

		{
// Moderators without the permission to approve post should at least not see them. ;)
continue;

Line 280Line 282
		$forum_id = array($forum_id);
}


		$forum_id = array($forum_id);
}


	if (!sizeof($forum_id))

	if (!count($forum_id))

	{
return array();
}

	{
return array();
}

Line 329Line 331

$rowset = array();



$rowset = array();


	if (!sizeof($pm_ids))

	if (!count($pm_ids))

	{
return array();
}

	{
return array();
}

Line 730Line 732
	}
$db->sql_freeresult($result);


	}
$db->sql_freeresult($result);


	if (!sizeof($ids))

	if (!count($ids))

	{
return false;
}

	{
return false;
}