#8127 closed defect (bug) (fixed)
Possible DB error during BP 5.0.0 upgrade
Reported by: | imath | Owned by: | dcavins |
---|---|---|---|
Milestone: | 5.0.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | has-patch |
Cc: |
Description
In [12429] was introduced the function to migrate existing "old" group invites into the new way of managing the Group Invites, see bp_groups_migrate_invitations()
. This works fine, unless there are no invites to migrate 😬. In this case we get a DB error.
@dcavins could you review the patch and take this ticket in charge?
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
👍
Should be
empty( $records )
instead of!
to avoid type juggling.(It is checking for a non-empty result, but
get_results()
returnsarray|object|null
– not a boolean.)Cleaning all of those up could probably it's own issue at this point though, so I'm OK with either.