I am trying to print the content of the variable and a <hr> tag after doing a check if the variable is not empty. The <hr> is getting echoed even if the variable is empty.
Here is what I have
<?php if (!empty($content['relationship_graph'])){
print render($content['relationship_graph']);
echo '<hr>';
}
?>
Not very pro in PHP but looked at some documentation...Cant seem to figure out what I might be doing wrong
render()do? Can you echo out$content['relationship_graph']inside your if statement?$content['relationship_graph']is really empty?