]> git.mxchange.org Git - friendica.git/blobdiff - mod/follow.php
report failure to generate keys
[friendica.git] / mod / follow.php
index dfc3945028290399738ce6eb32482f941a69282c..d5651ea39e79a397f9cf42eae9c98979d0291ad2 100644 (file)
@@ -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