Skip to content

Commit

Permalink
Define undefined variables to prevent an error
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Apr 20, 2018
1 parent a1b8f24 commit c7619e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lrscan.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
$sector = null;
}

$image_string = null;

// Get playerinfo from database
$players_gateway = new \Tki\Players\PlayersGateway($pdo_db); // Build a player gateway object to handle the SQL calls
$playerinfo = $players_gateway->selectPlayerInfo($_SESSION['username']);
Expand Down Expand Up @@ -219,6 +221,7 @@
else
{
// User requested a single sector (standard) long range scan
$links = array();

// Get sectorinfo from database
$sectors_gateway = new \Tki\Sectors\SectorsGateway($pdo_db); // Build a sector gateway object to handle the SQL calls
Expand Down

0 comments on commit c7619e1

Please sign in to comment.