Skip to content

Commit

Permalink
Fixing PHP notice for undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
steverobbins committed Jun 11, 2015
1 parent 0379e42 commit f8aaa8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use MageScan\Url;
use MageScan\Request;

$suggestUrl = '';
if (isset($_GET['url'])) {
$url = $_GET['url'];
$magescanUrl = new Url;
Expand All @@ -13,7 +14,6 @@
$response = $request->fetch($url, array(
CURLOPT_NOBODY => true
));
$suggestUrl = '';
if (isset($response->header['Location'])) {
$suggestUrl = $response->header['Location'];
}
Expand Down

0 comments on commit f8aaa8c

Please sign in to comment.