use empty check instead of string check to prevent php warning (#6843)

This commit is contained in:
frytimo 2023-12-07 21:38:01 -04:00 committed by GitHub
parent 1ceb2fcbc9
commit 1664bef5d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@
is_array($tmp_url) && @sizeof($tmp_url) != 0 &&
is_array($tmp_path) && @sizeof($tmp_path) != 0 &&
(
($tmp_url['scheme'] != '' && $tmp_url['scheme'].'://'.$tmp_url['host'].$tmp_url['path'] == $tmp_path['dirname'].'/'.$tmp_path['filename'].'.'.$tmp_path['extension']) //is url
(!empty($tmp_url['scheme']) && $tmp_url['scheme'].'://'.$tmp_url['host'].$tmp_url['path'] == $tmp_path['dirname'].'/'.$tmp_path['filename'].'.'.$tmp_path['extension']) //is url
|| $tmp_url['path'] == $tmp_path['dirname'].'/'.$tmp_path['filename'].'.'.$tmp_path['extension'] //is path
)) {
$settings['theme'][$subcategory] = $setting['text'];