diff options
author | Mario <mario@mariovavti.com> | 2021-02-18 13:29:15 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-02-18 13:29:15 +0000 |
commit | 65068479b9a7afd0d210550bf54fb3b19ed1fbf2 (patch) | |
tree | 0224c847e56be4ae6a25029fbe1c0537815ef128 /include/plugin.php | |
parent | 92f3c5ae2191dbffcc327dd1068e692467dc24dd (diff) | |
download | volse-hubzilla-65068479b9a7afd0d210550bf54fb3b19ed1fbf2.tar.gz volse-hubzilla-65068479b9a7afd0d210550bf54fb3b19ed1fbf2.tar.bz2 volse-hubzilla-65068479b9a7afd0d210550bf54fb3b19ed1fbf2.zip |
php8 warnings
Diffstat (limited to 'include/plugin.php')
-rw-r--r-- | include/plugin.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/plugin.php b/include/plugin.php index 269903373..cfac1b79f 100644 --- a/include/plugin.php +++ b/include/plugin.php @@ -912,7 +912,7 @@ function script_path() { // Some proxy setups may require using http_host - if(isset(App::$config['system']['script_path_use_http_host']) && intval(App::$config['system']['script_path_use_http_host'])) + if(intval(App::$config['system']['script_path_use_http_host'])) $server_var = 'HTTP_HOST'; else $server_var = 'SERVER_NAME'; @@ -929,8 +929,9 @@ function script_path() { } function head_add_js($src, $priority = 0) { - if(! is_array(App::$js_sources[$priority])) - App::$js_sources[$priority] = array(); + if(isset(App::$js_sources[$priority]) && !is_array(App::$js_sources[$priority])) + App::$js_sources[$priority] = []; + App::$js_sources[$priority][] = $src; } |