From 1664bef5d956e06c5e0e2a3f68bcbe550c802807 Mon Sep 17 00:00:00 2001 From: frytimo Date: Thu, 7 Dec 2023 21:38:01 -0400 Subject: [PATCH] use empty check instead of string check to prevent php warning (#6843) --- resources/footer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/footer.php b/resources/footer.php index 5cda6ed921..fb231e057b 100644 --- a/resources/footer.php +++ b/resources/footer.php @@ -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'];