mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-05 00:59:35 +00:00
[validation] Return null on invalid number
This commit is contained in:
parent
54e8bb2228
commit
e4fa963bdf
@ -21,7 +21,7 @@ function validateData(&$data, $parameters){
|
||||
$validateNumberValue = function($value){
|
||||
$filteredValue = filter_var($value, FILTER_VALIDATE_INT);
|
||||
|
||||
if($filteredValue === false && !empty($value))
|
||||
if($filteredValue === false)
|
||||
return null;
|
||||
|
||||
return $filteredValue;
|
||||
|
Loading…
Reference in New Issue
Block a user