projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf34bd5
)
try some fiddling to get message notification going out
author
Evan Prodromou
<evan@controlyourself.ca>
Tue, 23 Sep 2008 07:21:50 +0000
(
03:21
-0400)
committer
Evan Prodromou
<evan@controlyourself.ca>
Tue, 23 Sep 2008 07:21:50 +0000
(
03:21
-0400)
darcs-hash:
20080923072150
-5ed1f-
e885ab238ccf5bb4b21486b37cf8449812cae7ee
.gz
lib/mail.php
patch
|
blob
|
history
diff --git
a/lib/mail.php
b/lib/mail.php
index 4788ccb91725fc9480148622e8e0d5c30dd0b942..9a04aabcbd4ad04da183a829974828e3a2bc2076 100644
(file)
--- 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;
}