From 955eb4f75eb2df3f58cf115e87c2afa416f43636 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Tue, 7 Nov 2006 07:31:59 +0000 Subject: [PATCH] #93078 by Frando. array_shift needs a real variable for pass by reference. --- modules/color/color.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }