From a6d4097c9b88f3c781fb0414bf1b48f4c3fd5af5 Mon Sep 17 00:00:00 2001
From: Dmitry Danilson <kupifoto@gmail.com>
Date: Sat, 21 Jan 2012 19:46:52 +0700
Subject: [PATCH] Issue #1412286 Fix undefined variable

---
 uc_product/uc_product.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/uc_product/uc_product.module b/uc_product/uc_product.module
index dcc3496..1732ee8 100644
--- a/uc_product/uc_product.module
+++ b/uc_product/uc_product.module
@@ -1744,7 +1744,7 @@ function uc_product_is_product($node) {
   }
 
   // If no node type was found, go ahead and return FALSE.
-  if (!$type) {
+  if (!isset($type)) {
     return FALSE;
   }
 
-- 
1.7.5.4

