phpBB

Code Changes

File: phpbb/notification/type/post.php

  Unmodified   Added   Modified   Removed
Line 202Line 202
			'username'		=> $this->get_data('post_username'),
)), $responders);


			'username'		=> $this->get_data('post_username'),
)), $responders);


		$responders_cnt = sizeof($responders);

		$responders_cnt = count($responders);

		$responders = $this->trim_user_ary($responders);

		$responders = $this->trim_user_ary($responders);

		$trimmed_responders_cnt = $responders_cnt - sizeof($responders);

		$trimmed_responders_cnt = $responders_cnt - count($responders);


foreach ($responders as $responder)
{


foreach ($responders as $responder)
{

Line 337Line 337
	*/
public function trim_user_ary($users)
{

	*/
public function trim_user_ary($users)
{

		if (sizeof($users) > 4)

		if (count($users) > 4)

		{
array_splice($users, 3);
}

		{
array_splice($users, 3);
}

Line 357Line 357
	*/
public function pre_create_insert_array($post, $notify_users)
{

	*/
public function pre_create_insert_array($post, $notify_users)
{

		if (!sizeof($notify_users) || !$this->inherit_read_status)

		if (!count($notify_users) || !$this->inherit_read_status)

		{
return array();
}

		{
return array();
}

Line 426Line 426
		// Do not add more than 25 responders,
// we trim the username list to "a, b, c and x others" anyway
// so there is no use to add all of them anyway.

		// Do not add more than 25 responders,
// we trim the username list to "a, b, c and x others" anyway
// so there is no use to add all of them anyway.

		if (sizeof($responders) > 25)

		if (count($responders) > 25)

		{
return array();
}

		{
return array();
}