Quote:
|
Originally Posted by aristoworks
You could always just turn the errors off if you don't want to be bothered.
error_reporting(0);
|
Personally I think the errors should always be reported as it will help maintain cleaner code and will notify you otherwise. I'd recommend going with d3mcfadden's advice using the Ternary Operator. Nice, clean, simple.
- Mike