]> git.mxchange.org Git - friendica.git/commitdiff
reduce code
authorPhilipp Holzer <admin@philipp.info>
Sun, 24 Feb 2019 16:51:53 +0000 (17:51 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Mar 2019 02:28:13 +0000 (22:28 -0400)
src/Module/Apps.php

index a23ac0a77b939d70b1beac6af7f1f6c7c3ef8e7d..efba071aa3010b3a3cd5f6a0b345401136053b49 100644 (file)
@@ -16,10 +16,8 @@ class Apps extends BaseModule
        public static function init()
        {
                $privateaddons = Config::get('config', 'private_addons');
-               if ($privateaddons === "1") {
-                       if (!local_user()) {
-                               self::getApp()->internalRedirect();
-                       };
+               if ($privateaddons === "1" && !local_user()) {
+                       self::getApp()->internalRedirect();
                }
        }