[buddypress-trac] [BuddyPress Trac] #8619: Undefined variable when handle avatar crop

buddypress-trac noreply at wordpress.org
Sat Jan 22 16:34:21 UTC 2022


#8619: Undefined variable when handle avatar crop
--------------------------+---------------------
 Reporter:  oztaser       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  10.1.0
Component:  Core          |     Version:  10.0.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+---------------------

Comment (by oztaser):

 I've found an another undefined variable usage in
 `bp_nouveau_ajax_post_update()` function. I think `$group_id` should be
 `$item_id`.

 {{{
 diff --git a/src/bp-templates/bp-nouveau/includes/activity/ajax.php b/src
 /bp-templates/bp-nouveau/includes/activity/ajax.php
 index 0043e9d4c..6e81f3a88 100644
 --- a/src/bp-templates/bp-nouveau/includes/activity/ajax.php
 +++ b/src/bp-templates/bp-nouveau/includes/activity/ajax.php
 @@ -552,7 +552,7 @@ function bp_nouveau_ajax_post_update() {
                                 if ( ! empty(
 $bp->groups->current_group->status ) ) {
                                         $status =
 $bp->groups->current_group->status;
                                 } else {
 -                                       $group  = groups_get_group( array(
 'group_id' => $group_id ) );
 +                                       $group  = groups_get_group( array(
 'group_id' => $item_id ) );
                                         $status = $group->status;
                                 }
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8619#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list