Project

General

Profile

Bug #2713 » plugin.foundation.patch

krileon, 31 October 2011 16:56

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 ) ) {
$var = implode( '|*|', $var );
}
} elseif ( isset( $user->_cbuser->$field ) ) {
// fall-back to the record if it exists:
$var = $user->_cbuser->$field;
......
$field = $user->getField( $input[2], $default, $output, $formatting, $reason, 0, false ); // do not allow accessing all fields in the fields
if ( ( $output == 'php' ) && ( is_array( $field ) ) ) {
$field = array_shift( $field );
if ( is_array( $field ) ) {
$field= implode( '|*|', $field );
}
}
return $field;
} else {
(3-3/3)