Project

General

Profile

Bug #2729 ยป 2729.patch

krileon, 22 August 2011 21:56

View differences:

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 ) ) {
    (1-1/1)