From: Hypolite Petovan Date: Wed, 23 Nov 2022 18:33:54 +0000 (-0500) Subject: [startpage] Remove deprecated call to strlen X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f0baf183395a719c616addaa914fc2a0db656c24;p=friendica-addons.git [startpage] Remove deprecated call to strlen - Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1321796513 --- diff --git a/startpage/startpage.php b/startpage/startpage.php index 1b77ffe8..99a2e3fa 100644 --- a/startpage/startpage.php +++ b/startpage/startpage.php @@ -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; } /**