I am getting the following error in debug mode from my wordpress theme. Likely a very easy fix but I dont see what to do.
UNDEFINED VARIABLE: OUTPUT .... line 34 ($output variable)
$categories = get_the_category();
if($categories) {
foreach($categories as $category) {
$output .= '<a href="'.get_category_link( $category->term_id ).'" class="btn-standard-blog" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a>';
}
}
echo $output;