diff --git a/classes/Rest/Controllers/WarehouseControllerProvider.php b/classes/Rest/Controllers/WarehouseControllerProvider.php index d1f5a13e69..2a85882fcd 100644 --- a/classes/Rest/Controllers/WarehouseControllerProvider.php +++ b/classes/Rest/Controllers/WarehouseControllerProvider.php @@ -2082,7 +2082,7 @@ private function getJobByPrimaryKey(Application $app, \XDUser $user, $realm, $se throw new \DataWarehouse\Query\Exceptions\AccessDeniedException; } - if (isset($searchparams['jobref']) && is_int($searchparams['jobref'])) { + if (isset($searchparams['jobref']) && is_numeric($searchparams['jobref'])) { $params = array( 'primary_key' => $searchparams['jobref'] );