Project

General

Profile

plugin.foundation.patch

krileon, 31 October 2011 04:56 PM

View differences:

administrator/components/com_comprofiler/plugin.foundation.php
1419 1419
							$var	=	$user->getField( $field, null, 'php', 'none', 'profile', 0, true );		// allow accessing all fields in the if
1420 1420
							if ( is_array( $var ) ) {
1421 1421
								$var =	array_shift( $var );
1422
								if ( is_array( $var ) ) {
1423
									$var	=	implode( '|*|', $var );
1424
								}
1422 1425
							} elseif ( isset( $user->_cbuser->$field ) ) {
1423 1426
								// fall-back to the record if it exists:
1424 1427
								$var =	$user->_cbuser->$field;
......
1591 1594
							$field		=	$user->getField( $input[2], $default, $output, $formatting, $reason, 0, false );		// do not allow accessing all fields in the fields
1592 1595
							if ( ( $output == 'php' ) && ( is_array( $field ) ) ) {
1593 1596
								$field	=	array_shift( $field );
1597
								if ( is_array( $field ) ) {
1598
									$field=	implode( '|*|', $field );
1599
								}
1594 1600
							}
1595 1601
							return $field;
1596 1602
						} else {