From 2c4ac0cea3955c531c9cccbf0d98dc430ccfe738 Mon Sep 17 00:00:00 2001
From: dooug <dooug@417693.no-reply.drupal.org>
Date: Wed, 11 Mar 2015 15:44:46 -0400
Subject: [PATCH] Issue #1843848 by dooug: exit update 7003 without error if no
 message_text_subject field.

---
 message_notify.install | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/message_notify.install b/message_notify.install
index 7935cf8..79797b9 100644
--- a/message_notify.install
+++ b/message_notify.install
@@ -69,6 +69,10 @@ function message_notify_update_7003(&$sandbox) {
   $subject_field = field_info_field('message_text_subject');
   $subject_table_name =  _field_sql_storage_tablename($subject_field);
 
+  if ($subject_field == NULL) {
+    return;
+  }
+
   $result = db_select($subject_table_name)
   ->fields($subject_table_name)
   ->execute()
-- 
1.8.5.2 (Apple Git-48)

