diff --git a/modules/color/color.module b/modules/color/color.module index e0253e74c7b..5bb0d20b6a0 100644 --- a/modules/color/color.module +++ b/modules/color/color.module @@ -72,7 +72,8 @@ function color_get_palette($theme, $default = false) { // Fetch and expand default palette $fields = array('base', 'link', 'top', 'bottom', 'text'); $info = color_get_info($theme); - foreach (explode(',', array_shift(array_keys($info['schemes']))) as $k => $scheme) { + $keys = array_keys($info['schemes']); + foreach (explode(',', array_shift($keys)) as $k => $scheme) { $palette[$fields[$k]] = $scheme; }