From 7aa5407bbdc86a375d9c14f1ea7d3d82e9f8ea07 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 8 Dec 2022 08:51:49 -0500 Subject: [PATCH] Remove superfluous strlen call in Module\Tos - Address https://github.com/friendica/friendica/issues/12011#issuecomment-1342617099 --- src/Module/Tos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Tos.php b/src/Module/Tos.php index 822aa8813b..11cecac44d 100644 --- a/src/Module/Tos.php +++ b/src/Module/Tos.php @@ -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')); }