ID: 10102 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Analyzed Old-Bug Type: Scripting Engine problem Bug Type: Feature/Change Request Assigned To: Comments: empty() will only accept variables, no expressions the error message is a little misleading, do i move this to feature requests: "have a better error message when argument to empty() isn't a variable" Previous Comments: --------------------------------------------------------------------------- [2001-04-01 19:05:21] [EMAIL PROTECTED] Parse error: parse error, expecting `')'' in c:sitehomenews.php on line 21 Line 21: if(!empty($news->getField(url))) Line 22: echo $news->getField(url); What is wrong in this line? I changed it to: $thing=$news->getField(url); if(!empty($thing)) echo $news->getField(url); Now, it works fine. Weird... --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10102&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]