aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/notification.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-18 20:28:22 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-18 20:28:22 +0000
commitf2aa2c6980460261f27bf01d3e074aa9b2d4bd5d (patch)
treefa970a82dc5871c7cd1496cd2e62eb632ba15dd1 /engine/lib/notification.php
parentb62d40b4d21a0cf06c31ca4cb47d5a2523276e2d (diff)
downloadelgg-f2aa2c6980460261f27bf01d3e074aa9b2d4bd5d.tar.gz
elgg-f2aa2c6980460261f27bf01d3e074aa9b2d4bd5d.tar.bz2
Merging r6497:6499 to trunk.
git-svn-id: http://code.elgg.org/elgg/trunk@6514 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/notification.php')
-rw-r--r--engine/lib/notification.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php
index 726f76993..7f949c32f 100644
--- a/engine/lib/notification.php
+++ b/engine/lib/notification.php
@@ -249,10 +249,10 @@ function email_notify_handler(ElggEntity $from, ElggUser $to, $subject, $message
// From
$site = get_entity($CONFIG->site_guid);
// If there's an email address, use it - but only if its not from a user.
- if ((isset($from->email)) && (!($from instanceof ElggUser))) {
+ if (!($from instanceof ElggUser) && $from->email) {
$from = $from->email;
- } else if (($site) && (isset($site->email))) {
- // Has the current site got a from email address?
+ } else if ($site && $site->email) {
+ // Use email address of current site if we cannot use sender's email
$from = $site->email;
} else {
// If all else fails, use the domain of the site.