Skip to content

Commit

Permalink
GH-139 Minor code cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
mdziekon committed Jun 1, 2022
1 parent 1e63327 commit b6251a5
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions fleet1.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
define('INSIDE', true);

$_EnginePath = './';

include($_EnginePath.'common.php');

include($_EnginePath . 'common.php');
include($_EnginePath . 'modules/flightControl/_includes.php');

use UniEngine\Engine\Includes\Helpers\Common\Collections;
Expand All @@ -14,8 +12,16 @@

loggedCheck();

if((!isset($_POST['sending_fleet']) || $_POST['sending_fleet'] != '1') && (!isset($_POST['gobackUsed']) || $_POST['gobackUsed'] != '1'))
{
if (
(
!isset($_POST['sending_fleet']) ||
$_POST['sending_fleet'] != '1'
) &&
(
!isset($_POST['gobackUsed']) ||
$_POST['gobackUsed'] != '1'
)
) {
header('Location: fleet.php');
safeDie();
}
Expand Down

0 comments on commit b6251a5

Please sign in to comment.