? matrix-498802-3.patch
Index: matrix.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/matrix/matrix.module,v
retrieving revision 1.2.4.8.2.26
diff -u -p -r1.2.4.8.2.26 matrix.module
--- matrix.module	10 Jul 2009 23:34:34 -0000	1.2.4.8.2.26
+++ matrix.module	16 Jul 2009 21:11:21 -0000
@@ -740,6 +740,7 @@ function matrix_format_prepare($field_in
   }
   
   //prepare the data - this will either live in $field_info['data'] (defaut formatter) or in $item (.tpl.php file)
+  $field_info['data'];
   if (isset($item)) {
     ksort($item);
     foreach ($item as $key => $value) {
@@ -768,6 +769,7 @@ function matrix_format_prepare($field_in
 
   //replace blank cells with a dash
   ksort($field_info['data']);
+  $data = array();
   foreach ($field_info['data'] as $row_index => $row) { 
     ksort($row);
     foreach ($row as $col_index => $cell_value) {
@@ -1048,4 +1050,4 @@ print_r($form_state);
 
   // Final rendering callback.
   drupal_json(array('status' => TRUE, 'data' => $output));
-}
\ No newline at end of file
+}
