diff --git a/Changelog.md b/Changelog.md index e4c1836..72e7cf1 100644 --- a/Changelog.md +++ b/Changelog.md @@ -201,3 +201,5 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co [2024.07.02; Maikuolan]: Merged zh and zh-TW L10N, and dropped region designations (e.g., CN, TW) in favour of script designations (e.g., Hans, Hant). [2024.07.23; Maikuolan]: Added MDN to the front-end's "useful links". + +[2024.09.02; Maikuolan]: Code-style patch. diff --git a/src/FrontEnd.php b/src/FrontEnd.php index 943503d..411e91a 100644 --- a/src/FrontEnd.php +++ b/src/FrontEnd.php @@ -8,7 +8,7 @@ * License: GNU/GPLv2 * @see LICENSE.txt * - * This file: Front-end handler (last modified: 2024.06.18). + * This file: Front-end handler (last modified: 2024.09.02). */ namespace phpMussel\FrontEnd; @@ -492,10 +492,7 @@ public function view(string $Page = ''): void /** Handle front-end logging. */ $this->frontendLogger($this->Loader->IPAddr, $TryUser, $LoggerMessage ?? ''); - } - - /** Determine whether the user has logged in. */ - elseif (!empty($_COOKIE['PHPMUSSEL-ADMIN'])) { + } elseif (!empty($_COOKIE['PHPMUSSEL-ADMIN'])) { $this->Permissions = -1; if ( ($TrySession = $this->Loader->Cache->getEntry($_COOKIE['PHPMUSSEL-ADMIN'])) &&