From 58d04cdcd497da4d7c337637bf94baa912bb735f Mon Sep 17 00:00:00 2001
From: Sascha Grossenbacher <saschagros@gmail.com>
Date: Mon, 28 Feb 2011 13:32:19 +0100
Subject: [PATCH] Return if submit does not exist.

---
 .../privatemsg_attachments.module                  |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/privatemsg_attachments/privatemsg_attachments.module b/privatemsg_attachments/privatemsg_attachments.module
index 7d82e9e..443f4bd 100644
--- a/privatemsg_attachments/privatemsg_attachments.module
+++ b/privatemsg_attachments/privatemsg_attachments.module
@@ -16,11 +16,10 @@ function privatemsg_attachments_perm() {
  * Implements hook_form_FORM_ID_alter().
  */
 function privatemsg_attachments_form_privatemsg_form_reply_alter(&$form, &$form_state) {
-
   // If there are no valid recipients, the reply form possibly only shows a
   // error message. Don't add the forward fieldset in that case.
   if (!isset($form['submit'])) {
-
+    return;
   }
 
   // Reply form is separate now, just forward to the existing hook.
-- 
1.7.4.1

