]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3153. Fixed incorrect options.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 17 Mar 2011 01:52:35 +0000 (01:52 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 17 Mar 2011 01:52:35 +0000 (01:52 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8745 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/likes/start.php

index 97823087a1ea99d45981759c00bdf80ad90cfb9c..ef46c9ef28c5edc805064d1680bafb1064a3d1fc 100644 (file)
@@ -63,9 +63,9 @@ function likes_river_menu_setup($hook, $type, $return, $params) {
                                } else {
                                        // user has liked this
                                        $likes = elgg_get_annotations(array(
-                                               'guid' => $guid,
+                                               'guid' => $object->getGUID(),
                                                'annotation_name' => 'likes',
-                                               'owner_guid' => elgg_get_logged_in_user_guid()
+                                               'annotation_owner_guid' => elgg_get_logged_in_user_guid()
                                        ));
                                        $url = elgg_get_site_url() . "action/likes/delete?annotation_id={$likes[0]->id}";
                                        $options = array(