From: Philipp Holzer Date: Sun, 24 Feb 2019 16:51:53 +0000 (+0100) Subject: reduce code X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8e0355bec33807c88e1845f52de3449ce6438d0b;p=friendica.git reduce code --- diff --git a/src/Module/Apps.php b/src/Module/Apps.php index a23ac0a77b..efba071aa3 100644 --- a/src/Module/Apps.php +++ b/src/Module/Apps.php @@ -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(); } }