]> git.mxchange.org Git - friendica-addons.git/commitdiff
[startpage] Remove deprecated call to strlen
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 23 Nov 2022 18:33:54 +0000 (13:33 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 24 Nov 2022 19:04:55 +0000 (14:04 -0500)
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1321796513

startpage/startpage.php

index 1b77ffe86622e04b45c0ac4c2a795f4dfa45dc57..99a2e3fae725e89811cbdc7a0eaf240908ab8c36 100644 (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;
 }
 
 /**