summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-23 03:21:50 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-23 03:21:50 -0400
commit8957f9cf894973c2ef75b74e0e475ec37d9cb989 (patch)
treee73d555a0d1a400a8dbdd8b22dd92a2edc0fa315
parentcf34bd5da53afa249e5208937e33d7ec60a020fe (diff)
try some fiddling to get message notification going out
darcs-hash:20080923072150-5ed1f-e885ab238ccf5bb4b21486b37cf8449812cae7ee.gz
-rw-r--r--lib/mail.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mail.php b/lib/mail.php
index 4788ccb91..9a04aabcb 100644
--- a/lib/mail.php
+++ b/lib/mail.php
@@ -235,14 +235,14 @@ function mail_confirm_sms($code, $nickname, $address) {
function mail_notify_message($message, $from=NULL, $to=NULL) {
if (is_null($from)) {
- $from = User::staticGet($message->from_profile);
+ $from = User::staticGet('id', $message->from_profile);
}
if (is_null($to)) {
- $to = User::staticGet($message->to_profile);
+ $to = User::staticGet('id', $message->to_profile);
}
- if (!$to->email || !$to->emailnotifymsg) {
+ if (is_null($to->email) || !$to->emailnotifymsg) {
return true;
}