Skip to content

Commit

Permalink
Cast value to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Feb 7, 2019
1 parent cd04f1d commit 684d4fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/unlock_tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
}
if (isset($_GET['cycle'])) {
$cycle = $_GET['cycle'];
$cycle = (int)$_GET['cycle'];
} else {
$cycle = 25;
}
Expand Down Expand Up @@ -84,4 +84,4 @@
Event::log($task['id'], 'Crontask', 5, 'Configuration', $message);
}
}
echo "Number of unlocked tasks : ".$unlocked_tasks."\n";
echo "Number of unlocked tasks : ".$unlocked_tasks."\n";

0 comments on commit 684d4fc

Please sign in to comment.