Project

General

Profile

Bug #3739 ยป plugin.foundation.patch

krileon, 19 October 2012 20:15

View differences:

administrator/components/com_comprofiler/plugin.foundation.php
$var = $user->getField( $field, null, 'php', 'none', 'profile', 0, true ); // allow accessing all fields in the if
if ( is_array( $var ) ) {
$var = array_shift( $var );
if ( is_array( $var ) && ! in_array( $operator, array( ' includes ', '!includes ' ) ) ) {
if ( is_array( $var ) && ! in_array( $compare, array( ' includes ', '!includes ' ) ) ) {
$var = implode( '|*|', $var );
}
} elseif ( isset( $user->_cbuser->$field ) ) {
    (1-1/1)