Skip to content

Commit 07c5860

Browse files
unable to save table because of fatal error
1 parent 94ee4b8 commit 07c5860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Visualizer/Gutenberg/Block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ public function format_chart_data( $data, $series ) {
631631

632632
if ( $row['type'] === 'boolean' ) {
633633
foreach ( $data as $o => $col ) {
634-
$data[ $o ][ $i ] = ! empty( $col[ $i ] ) ? filter_validate( $col[ $i ], FILTER_VALIDATE_BOOLEAN ) : null;
634+
$data[ $o ][ $i ] = ! empty( $col[ $i ] ) ? filter_var( $col[ $i ], FILTER_VALIDATE_BOOLEAN ) : null;
635635
}
636636
}
637637

0 commit comments

Comments
 (0)