[various] Address a couple of PHP8.1 deprecation notices #1319

Merged
MrPetovan merged 2 commits from bug/deprecated into develop 2022-11-25 23:32:50 +01:00
Showing only changes of commit f0baf18339 - Show all commits

View file

@ -25,10 +25,9 @@ function startpage_home_init(App $a, $b)
}
$page = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'startpage', 'startpage');
if (strlen($page)) {
if ($page) {
DI::baseUrl()->redirect($page);
}
return;
}
/**