I am running drupal 6.22 with MySQL. I am trying to check if there is any error message set by using the following If
statement, but with no luck.
if(count(drupal_get_messages('error',FALSE)) > 0){
...
}
When I try this condition, I get a parse error saying...
Parse error: syntax error, unexpected T_IF
What am I doing wrong here? And how do I check if there is any error message in the message queue?