Skip to:
Content

BuddyPress.org

Changeset 6708


Ignore:
Timestamp:
01/06/2013 07:31:59 PM (14 years ago)
Author:
djpaul
Message:

Prevent several empty value warnings during avatar cropping (branch). See #4713

Location:
branches/1.6
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/1.6/bp-core/bp-core-avatars.php

    r6562 r6708  
    549549        }
    550550
     551        if ( ! isset( $bp->avatar_admin->image ) )
     552                $bp->avatar_admin->image = new stdClass();
     553
    551554        // We only want to handle one image after resize.
    552555        if ( empty( $bp->avatar_admin->resized ) )
  • branches/1.6/bp-groups/bp-groups-screens.php

    r6093 r6708  
    575575
    576576                }
     577
     578                if ( ! isset( $bp->avatar_admin ) )
     579                        $bp->avatar_admin = new stdClass();
    577580
    578581                $bp->avatar_admin->step = 'upload-image';
  • branches/1.6/bp-xprofile/bp-xprofile-screens.php

    r6070 r6708  
    155155        }
    156156
     157        if ( ! isset( $bp->avatar_admin ) )
     158                $bp->avatar_admin = new stdClass();
     159
    157160        $bp->avatar_admin->step = 'upload-image';
    158161
Note: See TracChangeset for help on using the changeset viewer.