]> git.mxchange.org Git - friendica.git/commitdiff
cannot pass null by reference
authorFriendika <info@friendika.com>
Fri, 14 Jan 2011 22:56:13 +0000 (14:56 -0800)
committerFriendika <info@friendika.com>
Fri, 14 Jan 2011 22:56:13 +0000 (14:56 -0800)
mod/salmon.php

index 3c62a6d8c556bb6eff1676e8987ad601fd69b567..2ae6aa6287e1027201b8abccbbc136e4912c7000 100644 (file)
@@ -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);
 }