Issue #1550892 by david.mckay | fgm: Fixed reset() on function call in image_update_7...
authorDavid Rothstein
Sat, 8 Dec 2012 21:29:59 +0000 (16:29 -0500)
committerDavid Rothstein
Sat, 8 Dec 2012 21:29:59 +0000 (16:29 -0500)
modules/image/image.install

index b7aac71..1d7bd4e 100644 (file)
@@ -391,7 +391,8 @@ function image_update_7002(array &$sandbox) {
   }
 
   // Process the table at the top of the list.
-  $table = reset(array_keys($sandbox['tables']));
+  $keys = array_keys($sandbox['tables']);
+  $table = reset($keys);
   $sandbox['processed'] += _image_update_7002_populate_dimensions($table, $sandbox['tables'][$table], $sandbox['last_fid']);
 
   // Has the table been fully processed?