First off, I see it done everywhere, using if statements without the block:
if ( $cond == true )
exit();
This code might appear innocent, but if someone who hasn't had much experience coding in PHP decides to add something before the exit call:
if ( $cond == true )
log_exit();
exit();
Well, you're in big trouble. So I'd like to suggest that curley brackets are always used, even for simple one liners.
The other thing: Is it ok to use the 'null' instead of an empty string ? I find null to be better because when working with a lot of joined strings its always easy to see.


