File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,13 +67,13 @@ function theme_flot_graph($variables) {
67
67
$id = str_replace('-', '_', $element['id']);
68
68
69
69
if ($loader) {
70
- $json_data = function_exists('json_encode') ? json_encode($data) : drupal_json_encode($data);
70
+ $json_data = drupal_json_encode($data);
71
71
$extra = "Drupal.flot.{$id}_data = {$json_data}; {$loader}";
72
72
$data = array();
73
73
}
74
74
75
- $json_data = function_exists('json_encode') ? json_encode($data) : drupal_json_encode($data);
76
- $json_options = function_exists('json_encode') ? json_encode($options) : drupal_json_encode($options);
75
+ $json_data = drupal_json_encode($data);
76
+ $json_options = drupal_json_encode($options);
77
77
$data = "(function ($) {
78
78
$(document).ready(function() {
79
79
Drupal.flot.{$id} = $.plot($('#{$element['id']}'), {$json_data}, {$json_options});
You can’t perform that action at this time.
0 commit comments