Index: send.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/send/send.install,v
retrieving revision 1.13
diff -u -p -r1.13 send.install
--- send.install	7 Aug 2009 01:00:03 -0000	1.13
+++ send.install	22 Oct 2009 19:13:14 -0000
@@ -526,13 +526,12 @@ function send_update_6002() {
       );
       $templates[$hash] = $template;
     }
-
-    $templates[$hash]['rows'][] = $row;
+    $templates[$hash]->rows[] = $row;
   }
 
   foreach ($templates as $template) {
     drupal_write_record('send_template', $template);
-    foreach ($template['rows'] as $row) {
+    foreach ($template->rows as $row) {
       $where = array("name = 'template'");
       $where[] = ($row->module) ? "module = '". $row->module ."'" : "module IS NULL";
       $where[] = ($row->nodetype) ? "nodetype = '". $row->nodetype ."'" : "nodetype IS NULL";
