? .DS_Store
? php_notices_00.patch
Index: vocabindex.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/vocabindex/vocabindex.admin.inc,v
retrieving revision 1.1.2.3.2.56
diff -u -p -r1.1.2.3.2.56 vocabindex.admin.inc
--- vocabindex.admin.inc	15 Nov 2008 17:27:00 -0000	1.1.2.3.2.56
+++ vocabindex.admin.inc	14 Dec 2008 15:14:55 -0000
@@ -65,6 +65,7 @@ function vocabindex_admin() {
  * @see vocabindex_admin()
  */
 function vocabindex_admin_submit($form, &$form_state) {
+  $clear_cache = FALSE;
   // Check each case in which the cache should be cleared.
   $values = $form_state['values'];
   if ($values['vocabindex_cache_lifetime'] != variable_get('vocabindex_cache_lifetime', 60)) {
@@ -256,7 +257,7 @@ function vocabindex_admin_vi_form_submit
     $vi->path = array_key_exists($id . 'path', $values) ? preg_replace('#^/|/$#', '', drupal_strtolower($values[$id . 'path'])) : NULL;
     $vi->view = $values[$id . 'view'];
     $vi->node_count = $values[$id . 'node_count'];
-    $vi->enabled = $values[$id . 'enabled'] == TRUE || !empty($values[$id . 'path']) ? TRUE : FALSE;
+    $vi->enabled = isset($values[$id . 'enabled']) && $values[$id . 'enabled'] == TRUE || !empty($values[$id . 'path']) ? TRUE : FALSE;
 
     vocabindex_vi_save($vi);
   }
Index: vocabindex.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/vocabindex/vocabindex.module,v
retrieving revision 1.1.2.5.2.74
diff -u -p -r1.1.2.5.2.74 vocabindex.module
--- vocabindex.module	15 Nov 2008 17:16:57 -0000	1.1.2.5.2.74
+++ vocabindex.module	14 Dec 2008 15:14:56 -0000
@@ -257,6 +257,7 @@ function vocabindex_taxonomy($op, $type,
  * Implementation of hook_help().
  */
 function vocabindex_help($path, $arg) {
+  $output = '';
   switch ($path) {
     // General help.
     case 'admin/help#vocabindex':
Index: vocabindex.view.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/vocabindex/vocabindex.view.inc,v
retrieving revision 1.1.2.2.2.72
diff -u -p -r1.1.2.2.2.72 vocabindex.view.inc
--- vocabindex.view.inc	6 Nov 2008 14:24:26 -0000	1.1.2.2.2.72
+++ vocabindex.view.inc	14 Dec 2008 15:14:56 -0000
@@ -144,7 +144,7 @@ function vocabindex_letter_get($tree = a
 
     if ($letter == '') {
       $letters = vocabindex_letters_get($tree);
-      $letter = $letters[0];
+      $letter = array_shift($letters);
     }
   }
 
@@ -223,7 +223,7 @@ function vocabindex_view_page($id, $type
 
   $output = vocabindex_vi_view($id, $type, $vi, $parent);
 
-  return theme('vocabindex_page', $parent, $output['content'], $output['pager'], $output['pager_alpha']);
+  return theme('vocabindex_page', $parent, $output['content'], isset($output['pager']) ? $output['pager'] : NULL, isset ($output['pager_alpha']) ? $output['pager_alpha'] : NULL);
 }
 
 /**
@@ -272,7 +272,7 @@ function vocabindex_vi_view($id, $type, 
   $cached_data = vocabindex_cache_get($type, $parent->id, $vi->view, vocabindex_letter_get());
 
   // There is no cached data, so render the output from scratch.
-  if ($cached_data == 0) {
+  if ($cached_data === 0) {
     // Check whether it's a term index or not. If so, set the term's TID as
     // $parent for taxonomy_get_tree(). Do not confuse with the $parent argument
     // of vocabindex_vi_view().
@@ -299,8 +299,12 @@ function vocabindex_vi_view($id, $type, 
       // Render the list.
       $output['content'] = theme('item_list', $output['list_items'], NULL, 'ul', array('class' => 'vocabindex ' . $view));
     }
-
     unset($output['list_items']);
+
+    if ($vi->view == VOCABINDEX_VIEW_ALPHABETICAL) {
+      $output['letter'] = vocabindex_letter_get($tree);
+    }
+
     vocabindex_cache_set($output, $type, $id, $vi->view, vocabindex_letter_get());
   }
   else {
@@ -308,9 +312,8 @@ function vocabindex_vi_view($id, $type, 
   }
   
   // Processes that cannot be cached.
-  if ($vi->view == VOCABINDEX_VIEW_ALPHABETICAL) {
-    $letter = vocabindex_letter_get($tree);  
-    drupal_set_title(check_plain($vi->name) . ' » ' . drupal_strtoupper($letter));
+  if ($vi->view == VOCABINDEX_VIEW_ALPHABETICAL && isset($output['letter'])) {
+    drupal_set_title(check_plain($vi->name) . ' » ' . drupal_strtoupper($output['letter']));
   }
   
   return $output;
@@ -551,7 +554,7 @@ function vocabindex_pager_query(&$tree) 
  */
 function vocabindex_text_dir() {
   global $language;
-  return $language->direction == LANGUAGE_LTR ? 'ltr' : 'rtl';
+  return defined('LANGUAGE_RTL') && $language->direction == LANGUAGE_RTL ? 'rtl' : 'ltr';
 }
 
 /**
