X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Flike.php;h=210bde690656e84e777c0b6771dc6ee57f867939;hb=4812f4c0f93915c20e4b3a9727fe0535a9d72721;hp=4df15b4b637963297c9004fc0f4d3dabb30d58aa;hpb=b2ffde3f6badde0d503a461f18885d20f57fb4e2;p=friendica.git diff --git a/include/like.php b/include/like.php index 4df15b4b63..210bde6906 100644 --- a/include/like.php +++ b/include/like.php @@ -112,8 +112,9 @@ function do_like($item_id, $verb) { intval($_SESSION['visitor_id']), intval($owner_uid) ); - if (dbm::is_result($r)) + if (dbm::is_result($r)) { $contact = $r[0]; + } } if (! $contact) { return false; @@ -246,7 +247,7 @@ EOT; // Save the author information for the like in case we need to relay to Diaspora - diaspora::store_like_signature($contact, $post_id); + Diaspora::store_like_signature($contact, $post_id); $arr['id'] = $post_id;