diff options
Diffstat (limited to 'includes/image.inc')
-rw-r--r-- | includes/image.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/image.inc b/includes/image.inc index a1e674cc1..24e90dbf7 100644 --- a/includes/image.inc +++ b/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); } } |