Skip to content

Commit

Permalink
Fix not-always-set varaible notice
Browse files Browse the repository at this point in the history
  • Loading branch information
bjori committed May 26, 2015
1 parent 229c1e8 commit d6a31a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manage/mirrors.php
Expand Up @@ -37,7 +37,7 @@
$has_stats = isset($has_stats) ? 1 : 0;
$moreinfo = empty($_GET['mi']) ? 0 : 1;

$mirrortype = (int)$mirrortype;
$mirrortype = isset($mirrortype) ? (int)$mirrortype : 0;

// Select last mirror check time from table
$lct = db_query("SELECT UNIX_TIMESTAMP(lastchecked) FROM mirrors ORDER BY lastchecked DESC LIMIT 1");
Expand Down

0 comments on commit d6a31a3

Please sign in to comment.