Project

General

Profile

2713.patch

krileon, 16 August 2011 04:35 PM

View differences:

administrator/components/com_comprofiler/plugin.foundation.php
1511 1511

  
1512 1512
				if ( is_array( $val ) ) {
1513 1513
					$val				=	array_shift( $val );
1514

  
1515
					if ( is_array( $val ) ) {
1516
						$val			=	implode( '|*|', $val );
1517
					}
1514 1518
				} elseif ( isset( $this->_cbuser->$input[1] ) ) {
1515 1519
					$val				=	$this->_cbuser->get( $input[1] );
1516 1520
				} else {
......
1557 1561
						$var			=	$user->getField( $field, null, 'php', 'none', 'profile', 0, true );		// allow accessing all fields in the data
1558 1562
						if ( is_array( $var ) ) {
1559 1563
							$var		=	array_shift( $var );
1564

  
1565
							if ( is_array( $var ) ) {
1566
								$var	=	implode( '|*|', $var );
1567
							}
1560 1568
						} elseif ( isset( $user->_cbuser->$field ) ) {
1561 1569
							// fall-back to the record if it exists:
1562 1570
							$var		=	$user->_cbuser->get( $field );