Project

General

Profile

Bug #2713 » 2713.patch

krileon, 16 August 2011 16:35

View differences:

administrator/components/com_comprofiler/plugin.foundation.php
if ( is_array( $val ) ) {
$val = array_shift( $val );
if ( is_array( $val ) ) {
$val = implode( '|*|', $val );
}
} elseif ( isset( $this->_cbuser->$input[1] ) ) {
$val = $this->_cbuser->get( $input[1] );
} else {
......
$var = $user->getField( $field, null, 'php', 'none', 'profile', 0, true ); // allow accessing all fields in the data
if ( is_array( $var ) ) {
$var = array_shift( $var );
if ( is_array( $var ) ) {
$var = implode( '|*|', $var );
}
} elseif ( isset( $user->_cbuser->$field ) ) {
// fall-back to the record if it exists:
$var = $user->_cbuser->get( $field );
(1-1/3)