--- charts.inc	2009-09-10 14:09:25.000000000 -0400
+++ charts.inc	2009-09-10 14:09:30.000000000 -0400
@@ -139,4 +139,16 @@ function _charts_settings_color_palette(
     '#ffffff,#000000,#ff6600,#009999,#1919b3,#ffb200,#ffff00,#660099,#e60066,#33ff00' => t('Secondary'),
     '' => t('Custom'),
   );
+}
+
+/**
+ * To make compatible with < PHP 5.2
+ */
+function array_fill_keys($target, $value = '') {
+  if(is_array($target)) {
+    foreach($target as $key => $val) {
+      $filledArray[$val] = is_array($value) ? $value[$key] : $value;
+    }
+  }
+  return $filledArray;
 }
\ No newline at end of file
