Commits

roberto.aloi  committed 07549c6

Fixed bug in accessing the first option. Refs #1.

  • Participants
  • Parent commits d79c823

Comments (0)

Files changed (1)

File highcharts.php

   private function build_option($key, $options)
   {
     $code = $key . ': ';
-    if (array_key_exists(0, $options))
-      if (!is_array($options[0]))
-        $code .= $this->build_properties($options);
+    if (!is_array(reset($options)))
+      $code .= $this->build_properties($options);
     else
       {
         $code .= '[';