Skip to content

Commit

Permalink
This is always true
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Nov 11, 2023
1 parent 19346ef commit 8ec08b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/pages/accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
$account = new OTS_Account();
$account->load($id);

if (isset($account, $_POST['save']) && $account->isLoaded()) {
if (isset($_POST['save']) && $account->isLoaded()) {
$error = false;

$_error = '';
Expand Down
2 changes: 1 addition & 1 deletion admin/pages/players.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
$player = new OTS_Player();
$player->load($id);

if (isset($player) && $player->isLoaded() && isset($_POST['save'])) {// we want to save
if ($player->isLoaded() && isset($_POST['save'])) {// we want to save
$error = false;

if ($player->isOnline())
Expand Down

0 comments on commit 8ec08b5

Please sign in to comment.