#8127 closed defect (bug) (fixed)
Possible DB error during BP 5.0.0 upgrade
| Reported by: | imath | Owned by: | dcavins |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.0.0 |
| Component: | Core | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
👍
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.