fix: Set API log start at 0 rather than 1(#7772)

This commit is contained in:
Richard Lawley
2017-11-20 15:31:21 +00:00
committed by Neil Lathwood
parent 0c83bd051b
commit c56f04e1e2

View File

@@ -1662,7 +1662,7 @@ function list_logs()
$message = ''; $message = '';
$status = 'ok'; $status = 'ok';
$code = 200; $code = 200;
$start = mres($_GET['start']) ?: 1; $start = mres($_GET['start']) ?: 0;
$limit = mres($_GET['limit']) ?: 50; $limit = mres($_GET['limit']) ?: 50;
$from = mres($_GET['from']); $from = mres($_GET['from']);
$to = mres($_GET['to']); $to = mres($_GET['to']);