View Single Post
Old 30-09-2006, 07:33   #4 (permalink)
MikeMackay
Yes I look angry.
 
MikeMackay's Avatar
 
Join Date: Feb 2005
Location: To the left a bit...
Posts: 924
Send a message via MSN to MikeMackay Send a message via Skype™ to MikeMackay
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
  Reply With Quote