From 73508ddd52cdce373158eb5faeb8fb7ad3db7f59 Mon Sep 17 00:00:00 2001
From: Mark Schulte <mark.schulte@switchbackcms.com>
Date: Sat, 10 Dec 2011 11:50:32 -0500
Subject: [PATCH] Fixing bug in UUID that causes array_flip warning

---
 .../uuid_features/includes/uuid_node.features.inc  |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/htdocs/sites/all/modules/uuid_features/includes/uuid_node.features.inc b/htdocs/sites/all/modules/uuid_features/includes/uuid_node.features.inc
index 2b24589..f36042f 100644
--- a/htdocs/sites/all/modules/uuid_features/includes/uuid_node.features.inc
+++ b/htdocs/sites/all/modules/uuid_features/includes/uuid_node.features.inc
@@ -65,7 +65,12 @@ function uuid_node_features_export_render($module, $data) {
   $code[] = '  $nodes = array();';
   $code[] = '';
   foreach ($data as $uuid) {
-    $node = node_load(uuid_node_find($uuid));
+    if ($nid = uuid_node_find($uuid)) {
+      $node = node_load($nid);
+    }
+    else {
+      continue;
+    }
     if (!empty($node->path)) {
       $node->pathauto_perform_alias = FALSE;
     }
-- 
1.7.5.4

