From df8480a32ec487c49b93bdaab49a081611871f6d Mon Sep 17 00:00:00 2001
From: Mathew Winstone <mathew.winstone@gmail.com>
Date: Tue, 22 Mar 2011 16:38:19 -0400
Subject: [PATCH] Issue #1101894 by minorOffense : Fix undefined variable

---
 flag_lists.module |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/flag_lists.module b/flag_lists.module
index 66ad435..f20c18f 100644
--- a/flag_lists.module
+++ b/flag_lists.module
@@ -396,6 +396,8 @@ function flag_lists_block($op = 'list', $delta = 0, $edit = array()) {
   }
   elseif ($op == 'view' && user_access('create flag lists') ) {
     $block['subject'] =  t('My lists');
+    // Initialize the node variable to avoid PHP warnings
+    $node = '';
     $block['content'] = theme('flag_lists_list', $node, variable_get('flag_lists_create_lists', 0), variable_get('flag_lists_ops', 0), variable_get('flag_lists_include_flags', 0));
     if (!is_null($block['content'])) {
       return $block;
-- 
1.7.4.1

