Parse error : T_echo
<p>My website shows this error:</p>

<blockquote>
  <p>Parse error: syntax error, unexpected T_ECHO in /home/content/09/9480109/html/wp-content/themes/Avenue/functions.php on line 143"</p>
</blockquote>

<p>This is the code near the offending line:</p>

<pre><code>case 'location':
    $post_type = get_post_type($post_id);
    $terms = get_the_terms($post_id, 'location');
    if ( !empty($terms) ) {
        foreach ( $terms as $term )
            $post_terms[] = "&lt;a href='edit.php?post_type=listings&amp;location={$term-&gt;slug}'&gt; " . esc_html(sanitize_term_field('name', $term-&gt;name, $term-&gt;term_id, $taxonomy, 'edit')) . "&lt;/a&gt;";
        echo join( ', ', $post_terms );
    }
    else echo '&lt;i&gt;No terms.&lt;/i&gt;'; 
    break;
</code></pre>

<p>Can anyone shed some light on the meaning of this error?</p>
