Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/09/2014 09:31:00 PM (5 years ago)
Author:
boonebgorges
Message:

An attempt to appease PHP 5.2 regarding string offsets.

As introduced in [9219].

See #6045.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/blogs/template.php

    r9219 r9220  
    122122    public function test_bp_signup_enabled_when_registration_setting_does_not_exist_should_default_to_true() {
    123123        $old_settings = $settings = buddypress()->site_options['registration'];
    124         if ( isset( $settings['registration'] ) ) {
     124        if ( is_array( $settings['registration'] ) && isset( $settings['registration'] ) ) {
    125125            unset( $settings['registration'] );
    126126        }
Note: See TracChangeset for help on using the changeset viewer.