From 65068479b9a7afd0d210550bf54fb3b19ed1fbf2 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 18 Feb 2021 13:29:15 +0000 Subject: php8 warnings --- boot.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 1d8872257..1bd829997 100644 --- a/boot.php +++ b/boot.php @@ -1758,7 +1758,7 @@ function shutdown() { */ function get_account_id() { - if(intval($_SESSION['account_id'])) + if(isset($_SESSION['account_id'])) return intval($_SESSION['account_id']); if(App::$account) @@ -2252,6 +2252,8 @@ function load_pdl() { $n = 'mod_' . App::$module . '.pdl' ; $u = App::$comanche->get_channel_id(); + $s = ''; + if($u) $s = get_pconfig($u, 'system', $n); if(! $s) -- cgit v1.2.3