aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-12 09:36:47 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-12 09:36:47 -0500
commit1674e174c49f365020f66dc778b133e30bc8177b (patch)
tree425796346dea0a99e2a84c1c5d993371f1d294f7
parentd570fa64707367bf84746ccce50575052ff843db (diff)
downloadelgg-1674e174c49f365020f66dc778b133e30bc8177b.tar.gz
elgg-1674e174c49f365020f66dc778b133e30bc8177b.tar.bz2
fixed exception being thrown when no site email address has been set
-rw-r--r--mod/invitefriends/actions/invite.php2
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);