1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/14972] replace all occurrences of sizeof() with the count()

PHPBB3-14972
This commit is contained in:
Rubén Calvo
2017-09-17 17:00:39 +02:00
parent 024cf709c4
commit e1e2c8ae3f
2 changed files with 4 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ class filespec_storage
*/
public function set_upload_ary($upload_ary)
{
if (!isset($upload_ary) || !sizeof($upload_ary))
if (!isset($upload_ary) || !count($upload_ary))
{
return $this;
}
@@ -389,7 +389,7 @@ class filespec_storage
*/
public function move_file($storage, $overwrite = false, $skip_image_check = false)
{
if (sizeof($this->error))
if (count($this->error))
{
return false;
}
@@ -460,7 +460,7 @@ class filespec_storage
// Remove temporary filename
@unlink($this->filename);
if (sizeof($this->error))
if (count($this->error))
{
return false;
}