[eluser]Gwarrior[/eluser]
Is the proper way to keep undefined variables in a page from erroring to use the @ operator?
For example, on my view:
Code:
<?php if (@$logged_in == TRUE) { ?>
<p>Welcome back, <?=$name;?>!</p>
<?php } ?>
If logged_in is not supplied (which looks at the session userdata and marks the variable as a boolean value in the controller), is it okay to do this?
Thanks!