File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
classes/Visualizer/Module Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -230,9 +230,12 @@ public function renderChart( $atts ) {
230
230
231
231
$ id = $ id . '- ' . rand ();
232
232
$ arguments = array ( '' , $ id , $ settings );
233
+ $ css = '' ;
233
234
apply_filters_ref_array ( 'visualizer_pro_inline_css ' , array ( &$ arguments ) );
234
- $ css = $ arguments [0 ];
235
- $ settings = $ arguments [2 ];
235
+ if ( ! empty ( $ arguments ) ) {
236
+ $ css = $ arguments [0 ];
237
+ $ settings = $ arguments [2 ];
238
+ }
236
239
237
240
// add chart to the array
238
241
$ this ->_charts [ $ id ] = array (
Original file line number Diff line number Diff line change 13
13
series = chart . series ;
14
14
data = chart . data ;
15
15
settings = chart . settings ;
16
- if ( settings == null ) {
17
- settings = { } ;
18
- }
19
16
20
17
container = document . getElementById ( id ) ;
21
18
if ( container == null ) {
You can’t perform that action at this time.
0 commit comments