diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-12 09:36:47 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-11-12 09:36:47 -0500 |
commit | 1674e174c49f365020f66dc778b133e30bc8177b (patch) | |
tree | 425796346dea0a99e2a84c1c5d993371f1d294f7 /mod/invitefriends | |
parent | d570fa64707367bf84746ccce50575052ff843db (diff) | |
download | elgg-1674e174c49f365020f66dc778b133e30bc8177b.tar.gz elgg-1674e174c49f365020f66dc778b133e30bc8177b.tar.bz2 |
fixed exception being thrown when no site email address has been set
Diffstat (limited to 'mod/invitefriends')
-rw-r--r-- | mod/invitefriends/actions/invite.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/invitefriends/actions/invite.php b/mod/invitefriends/actions/invite.php index d9b6db792..eed156d69 100644 --- a/mod/invitefriends/actions/invite.php +++ b/mod/invitefriends/actions/invite.php @@ -60,7 +60,7 @@ foreach ($emails as $email) { // create the from address $site = get_entity($site->guid); - if (($site) && (isset($site->email))) { + if ($site && $site->email) { $from = $site->email; } else { $from = 'noreply@' . get_site_domain($site->guid); |