Use is_null to check if a limit query parameter is set.

This commit is contained in:
paul121 2020-08-25 15:50:56 -07:00 committed by Michael Stenta
parent f810938f08
commit fcf006adf2
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ function farm_sensor_listener_page_callback($public_key) {
// If the 'limit' parameter is set, limit the number of results.
$limit = 1;
if (!empty($params['limit'])) {
if (!is_null($params['limit'])) {
$limit = $params['limit'];
}