mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-17 07:39:54 +03:00
[validation] Return null on invalid number
This commit is contained in:
parent
54e8bb2228
commit
e4fa963bdf
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue