=== modified file 'uc_catalog/uc_catalog.module'
--- uc_catalog/uc_catalog.module	2009-05-28 20:39:47 +0000
+++ uc_catalog/uc_catalog.module	2009-06-25 20:14:52 +0000
@@ -13,6 +13,8 @@
 
 /**
  * Data structure to mimic Drupal's menu system.
+ *
+ * These variables should be private or public
  */
 class uc_treeNode {
   var $tid = 0;
@@ -21,6 +23,10 @@
   var $depth = -1;
   var $sequence = 0;
 
+/**
+ * Constructor for uc_treeNode()
+ *
+ **/
   function uc_treeNode($term = NULL) {
     if ($term) {
       $this->tid = $term->tid;
@@ -70,22 +76,22 @@
     'file' => 'uc_catalog.pages.inc',
   );
   $items['admin/store/settings/catalog'] = array(
-    'title' => 'Catalog settings',
-    'description' => 'Configure the catalog settings.',
+    'title' => t('Catalog settings'),
+    'description' => t('Configure the catalog settings.'),
     'page callback' => 'uc_catalog_settings_overview',
     'access arguments' => array('administer catalog'),
     'type' => MENU_NORMAL_ITEM,
     'file' => 'uc_catalog.admin.inc',
   );
   $items['admin/store/settings/catalog/overview'] = array(
-    'title' => 'Overview',
+    'title' => t('Overview'),
     'access arguments' => array('administer catalog'),
     'weight' => -10,
     'type' => MENU_DEFAULT_LOCAL_TASK,
     'file' => 'uc_catalog.admin.inc',
   );
   $items['admin/store/settings/catalog/edit'] = array(
-    'title' => 'Edit',
+    'title' => t('Edit'),
     'page callback' => 'drupal_get_form',
     'page arguments' => array('uc_catalog_settings_form'),
     'access arguments' => array('administer catalog'),
@@ -94,14 +100,14 @@
     'file' => 'uc_catalog.admin.inc',
   );
   $items['admin/store/settings/catalog/edit/catalog'] = array(
-    'title' => 'Catalog settings',
+    'title' => t('Catalog settings'),
     'weight' => -10,
     'access arguments' => array('administer catalog'),
     'type' => MENU_DEFAULT_LOCAL_TASK,
     'file' => 'uc_catalog.admin.inc',
   );
   $items['admin/store/settings/catalog/edit/grid'] = array(
-    'title' => 'Product grid settings',
+    'title' => t('Product grid settings'),
     'page callback' => 'drupal_get_form',
     'page arguments' => array('uc_catalog_grid_settings_form'),
     'access arguments' => array('administer catalog'),
@@ -110,8 +116,8 @@
     'file' => 'uc_catalog.admin.inc',
   );
   $items['admin/store/products/orphans'] = array(
-    'title' => 'Find orphaned products',
-    'description' => 'Find products that have not been categorized.',
+    'title' => t('Find orphaned products'),
+    'description' => t('Find products that have not been categorized.'),
     'page callback' => 'uc_catalog_orphaned_products',
     'access arguments' => array('administer catalog'),
     'weight' => -4,
@@ -828,7 +834,7 @@
   static $terms;
   static $breadcrumb;
   static $types;
-
+  $lis = array();
   if (empty($types)) {
     $types = uc_product_types();
   }
@@ -880,7 +886,6 @@
   $expand = variable_get('uc_catalog_expand_categories', FALSE);
   $link = l($branch->name . $num_text, $branch_path);
   if ($expand || count($branch->children)) {
-    $lis = array();
     foreach ($branch->children as $twig) {
       // Expand if children are in the menu path. Capture their output.
       list($child_in_path, $lis[]) = _uc_catalog_navigation($twig);

