Source

highcharts-php / highcharts.php

Diff from to

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 .= '[';