Project

General

Profile

2729.patch

krileon, 22 August 2011 09:56 PM

View differences:

administrator/components/com_comprofiler/plugin.foundation.php
1554 1554
				switch ( $type ) {
1555 1555
					case 'userdata':
1556 1556
						$field			=	$input[2];
1557
						$var			=	$user->getField( $field, null, 'php', 'none', 'profile', 0, true );		// allow accessing all fields in the data
1557
						$default		=	( isset( $input[4] ) ? CBTxt::T( str_replace( '\"', '"', $input[4] ) ) : null );
1558
						$reason			=	( isset( $input[7] ) ? ( $input[7] !== '' ? $input[7] : 'profile' ) : 'profile' );
1559
						$var			=	$user->getField( $field, $default, 'php', 'none', $reason, 0, true );		// allow accessing all fields in the data
1558 1560
						if ( is_array( $var ) ) {
1559 1561
							$var		=	array_shift( $var );
1560 1562
						} elseif ( isset( $user->_cbuser->$field ) ) {