Skip to content

Commit

Permalink
Code-style patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikuolan committed Sep 2, 2024
1 parent 28b0633 commit 25b59f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
7 changes: 2 additions & 5 deletions src/FrontEnd.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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'])) &&
Expand Down

0 comments on commit 25b59f8

Please sign in to comment.