How to not show tags if the post doesn’t have any?

Get a string value for the tags and print it only if there are tags:

$tags = get_the_tag_list('', ', ', ' ');

if ( "" !== trim( $tags ) )
{
    echo "<p><i class="icon-tags"></i>$tags</p>";
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)