From: Alan Harder Date: Thu, 12 Apr 2007 00:36:45 +0000 (+0000) Subject: #134140 oops, use right variable for this change X-Git-Tag: 5.x-1.8~4 X-Git-Url: http://drupalcode.org/project/privatemsg.git/commitdiff_plain/f0c2eb2e0c376caeaf49dfbfeb412f4fcd987adc #134140 oops, use right variable for this change --- diff --git a/privatemsg.module b/privatemsg.module index 842b0e1..e86034b 100644 --- a/privatemsg.module +++ b/privatemsg.module @@ -673,7 +673,7 @@ function privatemsg_new_validate($form_id, $form_values) { if (!$recipient->uid) { form_set_error('recipient', t('The Recipient does not exist.')); } - else if (!$user->status || !(isset($recipient->privatemsg_allow) ? $recipient->privatemsg_allow : 1)) { + else if (!$recipient->status || !(isset($recipient->privatemsg_allow) ? $recipient->privatemsg_allow : 1)) { form_set_error('recipient', t('@name does not accept private messages.', array('@name' => $recipient->name))); } }