summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--privatemsg.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/privatemsg.module b/privatemsg.module
index 5e45b20..46eea61 100644
--- a/privatemsg.module
+++ b/privatemsg.module
@@ -192,7 +192,7 @@ function privatemsg_page() {
$breadcrumb = array(l(t('Home'), ''), l(t('private messages'), 'privatemsg'));
break;
case 'msgto':
- $msg->name = db_result(db_query("SELECT name FROM {users} WHERE uid = '%d'", $arg));
+ $msg->recipient = db_result(db_query("SELECT name FROM {users} WHERE uid = '%d'", $arg));
$output = _privatemsg_form($msg);
$title = t("Write a new message");
$breadcrumb = array(l(t('Home'), ''), l(t('private messages'), 'privatemsg'));