Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/21/2018 01:03:05 AM (8 years ago)
Author:
djpaul
Message:

Templates, Nouveau: use strict type checking for in_array() calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/activity/widgets.php

    r12104 r12106  
    193193            <select class="widefat" multiple="multiple" id="<?php echo $this->get_field_id( 'type' ); ?>" name="<?php echo $this->get_field_name( 'type' ); ?>[]">
    194194                <?php foreach ( bp_nouveau_get_activity_filters() as $key => $name ) : ?>
    195                     <option value="<?php echo esc_attr( $key ); ?>" <?php selected( in_array( $key, $type ) ); ?>><?php echo esc_html( $name ); ?></option>
     195                    <option value="<?php echo esc_attr( $key ); ?>" <?php selected( in_array( $key, $type, true ) ); ?>><?php echo esc_html( $name ); ?></option>
    196196                <?php endforeach; ?>
    197197            </select>
Note: See TracChangeset for help on using the changeset viewer.