I got new one problem with empty or trim function. I guess trim cant return a boolean but I dont know why ? :c
$author = htmlentities($_POST['author']);
if(empty(trim($author))) $author="Unknown";
Gives me this error:
Fatal error: Can't use function return value in write context