1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-24 00:05:33 +02:00

Merge pull request #4962 from rubencm/ticket/14972

[ticket/14972] replace all occurrences of sizeof() with the count()
This commit is contained in:
Derk 2017-12-03 23:58:34 +01:00 committed by GitHub
commit 9a5d03ce72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) public function set_upload_ary($upload_ary)
{ {
if (!isset($upload_ary) || !sizeof($upload_ary)) if (!isset($upload_ary) || !count($upload_ary))
{ {
return $this; return $this;
} }
@ -389,7 +389,7 @@ class filespec_storage
*/ */
public function move_file($storage, $overwrite = false, $skip_image_check = false) public function move_file($storage, $overwrite = false, $skip_image_check = false)
{ {
if (sizeof($this->error)) if (count($this->error))
{ {
return false; return false;
} }
@ -460,7 +460,7 @@ class filespec_storage
// Remove temporary filename // Remove temporary filename
@unlink($this->filename); @unlink($this->filename);
if (sizeof($this->error)) if (count($this->error))
{ {
return false; return false;
} }

View File

@ -109,7 +109,7 @@ class form_storage extends base
// PHP Upload file size check // PHP Upload file size check
$file = $this->check_upload_size($file); $file = $this->check_upload_size($file);
if (sizeof($file->error)) if (count($file->error))
{ {
return $file; return $file;
} }