# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/plugin.foundation.php +++ administrator/components/com_comprofiler/plugin.foundation.php @@ -1419,6 +1419,9 @@ $var = $user->getField( $field, null, 'php', 'none', 'profile', 0, true ); // allow accessing all fields in the if if ( is_array( $var ) ) { $var = array_shift( $var ); + if ( is_array( $var ) ) { + $var = implode( '|*|', $var ); + } } elseif ( isset( $user->_cbuser->$field ) ) { // fall-back to the record if it exists: $var = $user->_cbuser->$field; @@ -1591,6 +1594,9 @@ $field = $user->getField( $input[2], $default, $output, $formatting, $reason, 0, false ); // do not allow accessing all fields in the fields if ( ( $output == 'php' ) && ( is_array( $field ) ) ) { $field = array_shift( $field ); + if ( is_array( $field ) ) { + $field= implode( '|*|', $field ); + } } return $field; } else {