Commits

roberto.aloi  committed 003eb50

Fixed string elements in the HighChartsArray function.

  • Participants
  • Parent commits 9751ada

Comments (0)

Files changed (1)

File highcharts.php

   private $_array;
   public function HighchartsArray($array)
   {
-    $this->_array = $array;
+    $new_array = array();
+    foreach ($array as $elem)
+      if (is_string($elem))
+        $new_array []= '\'' . $elem . '\'';
+      else
+        $new_array []= $elem;
+    $this->_array = $new_array;
   }
   public function get()
   {