Daniel Brown wrote:
On 8/10/07, Stut <stuttle@xxxxxxxxx> wrote:
Bad Dan *slap*. Ignoring notices may be detrimental to your health
and/or well-being. Better to initialise it with a default if it has not
been set in the request.
if (!isset($_GET['order'])) $_GET['order'] = 'Last';
Ouch!
So you're all going to tell me that you have E_NOTICE set to
report on your sites? Look, I didn't say it was the Right Way[tm],
but it is safe to ignore.
I do indeed. E_NOTICE can help find certain bugs faster than any other
method I've found. Turning them off is both lazy and dangerous.
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php