Skip to content

Commit

Permalink
fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JavanXD committed Apr 25, 2020
1 parent a78089c commit 681e64c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ function getVersionInfo($stable) {

if (isset($_GET['mode']))
{
$stable = (INT)$_GET['stable'];

if (isset($_GET['stable'])) {
$stable = (INT)$_GET['stable'];
} else {
$stable = 1;
}

$output->git = "Update " . $GLOBALS['honeyPiHome'] . " git:" . "\n";
$output->git .= updateGit();
Expand Down

0 comments on commit 681e64c

Please sign in to comment.