Skip to content

Commit

Permalink
#25911 Fix notice on incorrect price param
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-sviziev committed Dec 5, 2019
1 parent 3a2561d commit 7068268
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public function validateFilter($filter)
return false;
}
foreach ($filter as $v) {
if ($v !== '' && $v !== '0' && (double)$v <= 0 || is_infinite((double)$v)) {
if ($v !== '' && $v !== '0' && (!is_numeric($v) || (double)$v <= 0 || is_infinite((double)$v))) {
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public function validateFilterDataProvider()
['filter' => '0', 'result' => false],
['filter' => 0, 'result' => false],
['filter' => '100500INF', 'result' => false],
['filter' => '-10\'[0]', 'result' => false],
];
}

Expand Down

0 comments on commit 7068268

Please sign in to comment.