From f0baf183395a719c616addaa914fc2a0db656c24 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 23 Nov 2022 13:33:54 -0500 Subject: [PATCH] [startpage] Remove deprecated call to strlen - Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1321796513 --- startpage/startpage.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/startpage/startpage.php b/startpage/startpage.php index 1b77ffe86..99a2e3fae 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; } /**