Skip to:
Content

bbPress.org

Changeset 6495


Ignore:
Timestamp:
06/08/2017 01:28:05 AM (7 years ago)
Author:
johnjamesjacoby
Message:

Repairs: Prefer empty() over ! isset() in bbp_admin_repair_group_forum_relationship()

The meta_value key will always be set, because of the way the forum query is written.

See #2829.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/tools/repair.php

    r6340 r6495  
    353353
    354354        // Only update if is a converted forum
    355         if ( ! isset( $group_forums->meta_value ) ) {
     355        if ( empty( $group_forums->meta_value ) ) {
    356356            continue;
    357357        }
Note: See TracChangeset for help on using the changeset viewer.