mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
use empty check instead of string check to prevent php warning (#6843)
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user