# 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 @@ -1554,7 +1554,9 @@ 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 ) ) {