mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/14972] replace all occurrences of sizeof() with the count()
PHPBB3-14972
This commit is contained in:
@@ -209,7 +209,7 @@ class message
|
||||
*/
|
||||
public function cc_sender()
|
||||
{
|
||||
if (!sizeof($this->recipients))
|
||||
if (!count($this->recipients))
|
||||
{
|
||||
trigger_error('No email recipients specified');
|
||||
}
|
||||
@@ -238,7 +238,7 @@ class message
|
||||
*/
|
||||
public function send(\messenger $messenger, $contact)
|
||||
{
|
||||
if (!sizeof($this->recipients))
|
||||
if (!count($this->recipients))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -271,7 +271,7 @@ class message
|
||||
'MESSAGE' => htmlspecialchars_decode($this->body))
|
||||
);
|
||||
|
||||
if (sizeof($this->template_vars))
|
||||
if (count($this->template_vars))
|
||||
{
|
||||
$messenger->assign_vars($this->template_vars);
|
||||
}
|
||||
|
Reference in New Issue
Block a user