Merge pull request #6737 from MrPetovan/bug/6630-fix-empty-label-profile
authorMichael Vogel <icarus@dabo.de>
Sun, 24 Feb 2019 05:34:48 +0000 (06:34 +0100)
committerGitHub <noreply@github.com>
Sun, 24 Feb 2019 05:34:48 +0000 (06:34 +0100)
Fix "EMPTY" label in profile

src/Module/Install.php

index d1e2677..de19bc8 100644 (file)
@@ -43,6 +43,10 @@ class Install extends BaseModule
        {
                $a = self::getApp();
 
+               if (!$a->getMode()->isInstall()) {
+                       Core\System::httpExit(403);
+               }
+
                // route: install/testrwrite
                // $baseurl/install/testrwrite to test if rewrite in .htaccess is working
                if ($a->getArgumentValue(1, '') == 'testrewrite') {