Index: image.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/image.admin.inc,v
retrieving revision 1.9
diff -u -p -r1.9 image.admin.inc
--- image.admin.inc	13 Oct 2009 08:38:52 -0000	1.9
+++ image.admin.inc	30 Jun 2010 15:03:02 -0000
@@ -110,10 +110,11 @@ function image_admin_settings() {
  */
 function image_admin_settings_validate($form, &$form_state) {
   // Check that the sizes provided have the required amount of information.  
-  foreach (element_children($form['image_sizes']) as $key) {
+  $image_sizes = $form_state['values']['image_sizes'];
+  foreach (element_children($image_sizes) as $key) {
     // If there's a label they must provide at either a height or width.
-    if ($key != IMAGE_ORIGINAL && !empty($form['image_sizes'][$key]['label']['#value'])) {
-      if (empty($form['image_sizes'][$key]['width']['#value']) && empty($form['image_sizes'][$key]['height']['#value'])) {
+    if ($key != IMAGE_ORIGINAL && !empty($image_sizes[$key]['label'])) {
+      if (empty($image_sizes[$key]['width']) && empty($image_sizes[$key]['height'])) {
         form_set_error("image_sizes][$key][width", t('You must specify width, height or both dimensions.'));
       }
     }
