]> git.mxchange.org Git - friendica.git/commitdiff
Remove superfluous strlen call in Module\Tos
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 8 Dec 2022 13:51:49 +0000 (08:51 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 10 Dec 2022 16:38:42 +0000 (11:38 -0500)
- Address https://github.com/friendica/friendica/issues/12011#issuecomment-1342617099

src/Module/Tos.php

index 822aa8813b8d18af371c23f31bd98b6c5547c324..11cecac44da3d8a1510b4116016986015f6e455d 100644 (file)
@@ -77,7 +77,7 @@ class Tos extends BaseModule
         */
        protected function content(array $request = []): string
        {
-               if (strlen($this->config->get('system', 'singleuser'))) {
+               if ($this->config->get('system', 'singleuser')) {
                        $this->baseUrl->redirect('profile/' . $this->config->get('system', 'singleuser'));
                }