Repl FILTER_VALIDATE_BOOLEAN to FILTER_VALIDATE_BOOL

This commit is contained in:
Visman 2023-05-15 17:12:31 +07:00
parent 6f58d634a4
commit 19a7842b7a
2 changed files with 2 additions and 2 deletions

View file

@ -242,7 +242,7 @@ class ErrorHandler
EOT;
if (\filter_var(\ini_get('display_errors'), \FILTER_VALIDATE_BOOLEAN)) {
if (\filter_var(\ini_get('display_errors'), \FILTER_VALIDATE_BOOL)) {
echo '<p>' . $this->e($this->message($error)) . '</p>';
if (

View file

@ -1468,7 +1468,7 @@ class Install extends Admin
'b_regs_report' => 0,
'i_default_email_setting' => 2,
'o_mailing_list' => $v->email,
'b_avatars' => \filter_var(@\ini_get('file_uploads'), \FILTER_VALIDATE_BOOLEAN) ? 1 : 0,
'b_avatars' => \filter_var(\ini_get('file_uploads'), \FILTER_VALIDATE_BOOL) ? 1 : 0,
'o_avatars_dir' => '/img/avatars',
'i_avatars_width' => 160,
'i_avatars_height' => 160,