aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-02-18 13:29:15 +0000
committerMario <mario@mariovavti.com>2021-02-18 13:29:15 +0000
commit65068479b9a7afd0d210550bf54fb3b19ed1fbf2 (patch)
tree0224c847e56be4ae6a25029fbe1c0537815ef128 /boot.php
parent92f3c5ae2191dbffcc327dd1068e692467dc24dd (diff)
downloadvolse-hubzilla-65068479b9a7afd0d210550bf54fb3b19ed1fbf2.tar.gz
volse-hubzilla-65068479b9a7afd0d210550bf54fb3b19ed1fbf2.tar.bz2
volse-hubzilla-65068479b9a7afd0d210550bf54fb3b19ed1fbf2.zip
php8 warnings
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php4
1 files changed, 3 insertions, 1 deletions
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)