More bug fixes for the new toolkits. From: andrew morton --- includes/image.inc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git includes/image.inc includes/image.inc index 89d2e51..e29e280 100644 --- includes/image.inc +++ includes/image.inc @@ -68,7 +68,8 @@ function image_get_toolkit() { if (!isset($toolkits[$toolkit]) || !drupal_function_exists('image_' . $toolkit . '_load')) { // The selected toolkit isn't available so return the first one found. If // none are available this will return FALSE. - $toolkit = reset($toolkits); + reset($toolkits); + $toolkit = key($toolkits); } }