From df3a3feba3812c148e18d622845a65d8824bcbfd Mon Sep 17 00:00:00 2001
From: lucascaro <lucascaro@gmail.com>
Date: Thu, 30 Aug 2012 20:45:17 -0300
Subject: [PATCH] Fixed variable name for  that got changed and was not
 updated.

---
 uuid_services/uuid_services.module |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uuid_services/uuid_services.module b/uuid_services/uuid_services.module
index b657e38..caed069 100644
--- a/uuid_services/uuid_services.module
+++ b/uuid_services/uuid_services.module
@@ -182,7 +182,7 @@ function _uuid_services_entity_access($op, $args) {
       entity_make_entity_local($entity_type, $entity);
     }
     // Fetch the local entity if we've got an id.
-    elseif (!empty($entity_id)) {
+    elseif (!empty($entity_ids)) {
       $entities = entity_load($entity_type, $entity_ids);
       $entity = reset($entities);
     }
-- 
1.7.9.5

