fixed some missing parens (which caused the $post variable to be set to the result of a logic comparison, instead of the result of the get_post() call)