Skip to content

Commit d68b6ee

Browse files
1 parent 2e70024 commit d68b6ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

classes/Visualizer/Module/Admin.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,10 @@ public function renderLibraryPage() {
782782
$settings = apply_filters( $atts['settings'], $settings, $chart->ID, $type );
783783
}
784784

785-
unset( $settings['height'], $settings['width'], $settings['chartArea'] );
785+
if ( $settings ) {
786+
unset( $settings['height'], $settings['width'], $settings['chartArea'] );
787+
}
788+
786789
$series = apply_filters( Visualizer_Plugin::FILTER_GET_CHART_SERIES, get_post_meta( $chart->ID, Visualizer_Plugin::CF_SERIES, true ), $chart->ID, $type );
787790
$data = apply_filters( Visualizer_Plugin::FILTER_GET_CHART_DATA, unserialize( html_entity_decode( $chart->post_content ) ), $chart->ID, $type );
788791

0 commit comments

Comments
 (0)