From e7ae4ad3fa010e5f636738366aae81e129990fa7 Mon Sep 17 00:00:00 2001 From: Friendika Date: Fri, 14 Jan 2011 14:56:13 -0800 Subject: [PATCH] cannot pass null by reference --- mod/salmon.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/salmon.php b/mod/salmon.php index 3c62a6d8c5..2ae6aa6287 100644 --- a/mod/salmon.php +++ b/mod/salmon.php @@ -201,7 +201,9 @@ function salmon_post(&$a) { // consume_feed will only accept a follow activity from this person if there is no contact record. - consume_feed($feedxml,$importer,((count($r)) ? $r[0] : null),$hub); + $contact_rec = ((count($r)) ? $r[0] : null); + + consume_feed($feedxml,$importer,$contact_rec,$hub); salmon_return(200); }