Bug #2729 ยป 2729.patch
administrator/components/com_comprofiler/plugin.foundation.php | ||
---|---|---|
switch ( $type ) {
|
||
case 'userdata':
|
||
$field = $input[2];
|
||
$var = $user->getField( $field, null, 'php', 'none', 'profile', 0, true ); // allow accessing all fields in the data
|
||
$default = ( isset( $input[4] ) ? CBTxt::T( str_replace( '\"', '"', $input[4] ) ) : null );
|
||
$reason = ( isset( $input[7] ) ? ( $input[7] !== '' ? $input[7] : 'profile' ) : 'profile' );
|
||
$var = $user->getField( $field, $default, 'php', 'none', $reason, 0, true ); // allow accessing all fields in the data
|
||
if ( is_array( $var ) ) {
|
||
$var = array_shift( $var );
|
||
} elseif ( isset( $user->_cbuser->$field ) ) {
|