Skip to content

Commit a847e55

Browse files
committed
fix: schedule validation for WP import
1 parent 1b131a0 commit a847e55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

classes/Visualizer/Module/Chart.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,7 +1654,7 @@ public function saveFilter() {
16541654
$hours = filter_input(
16551655
INPUT_POST,
16561656
'refresh',
1657-
FILTER_VALIDATE_INT,
1657+
FILTER_VALIDATE_FLOAT,
16581658
array(
16591659
'options' => array(
16601660
'min_range' => -1,
@@ -1663,7 +1663,7 @@ public function saveFilter() {
16631663
)
16641664
);
16651665

1666-
if ( 0 !== $hours && empty( $hours ) ) {
1666+
if ( ! is_numeric( $hours ) ) {
16671667
$hours = -1;
16681668
}
16691669

0 commit comments

Comments
 (0)