diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/follow.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/follow.php b/mod/follow.php index dfc394502..d5651ea39 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -181,8 +181,11 @@ function follow_post(&$a) { intval(local_user()) ); - require_once('include/salmon.php'); - slapper($r[0],$contact['notify'],$slap); + + if((x($contact,'notify')) && (strlen($contact['notify']))) { + require_once('include/salmon.php'); + slapper($r[0],$contact['notify'],$slap); + } goaway($_SESSION['return_url']); // NOTREACHED |