Skip to content

Commit 25b59f8

Browse files
committed
Code-style patch.
1 parent 28b0633 commit 25b59f8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,5 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
201201
[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).
202202

203203
[2024.07.23; Maikuolan]: Added MDN to the front-end's "useful links".
204+
205+
[2024.09.02; Maikuolan]: Code-style patch.

src/FrontEnd.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Front-end handler (last modified: 2024.06.18).
11+
* This file: Front-end handler (last modified: 2024.09.02).
1212
*/
1313

1414
namespace phpMussel\FrontEnd;
@@ -492,10 +492,7 @@ public function view(string $Page = ''): void
492492

493493
/** Handle front-end logging. */
494494
$this->frontendLogger($this->Loader->IPAddr, $TryUser, $LoggerMessage ?? '');
495-
}
496-
497-
/** Determine whether the user has logged in. */
498-
elseif (!empty($_COOKIE['PHPMUSSEL-ADMIN'])) {
495+
} elseif (!empty($_COOKIE['PHPMUSSEL-ADMIN'])) {
499496
$this->Permissions = -1;
500497
if (
501498
($TrySession = $this->Loader->Cache->getEntry($_COOKIE['PHPMUSSEL-ADMIN'])) &&

0 commit comments

Comments
 (0)