]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed exception being thrown when no site email address has been set
authorCash Costello <cash.costello@gmail.com>
Sat, 12 Nov 2011 14:36:47 +0000 (09:36 -0500)
committercash <cash.costello@gmail.com>
Thu, 17 Nov 2011 00:53:03 +0000 (19:53 -0500)
mod/invitefriends/actions/invite.php

index d9b6db792ec2283bafa6acb432a0ea47a097c549..eed156d693076ff6e55ba2d60133739a95c57896 100644 (file)
@@ -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);