Index: modules/nat/nat.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/nat/nat.module,v
retrieving revision 1.14.2.14
diff -u -r1.14.2.14 nat.module
--- modules/nat/nat.module	22 Jun 2007 05:48:30 -0000	1.14.2.14
+++ modules/nat/nat.module	26 Jun 2007 17:30:00 -0000
@@ -369,10 +369,8 @@
       elseif (isset($nid_cache[$cache_string])) {
         // If the nid cache stores the same string, node_load() each nid and
         // return them.
-        $nids = $nid_cache[$cache_string];
         $return = array();
-
-        foreach ($nids as $nid) {
+        foreach (array_keys($nid_cache[$cache_string]) as $nid) {
           $return[$nid] = node_load($nid);
         }
         $node_cache[$cache_string] = $return;
