bretticus wrote:"Notice: Undefined variable:" is not an error. Turn off notices....
While you are correct that it is not an error and as such does not necessarily have any negative impact (other than display a notice), it does point to less than optimal coding practices and as such I would recommend fixing it rather than simply hiding it. By fixing such notices/warnings, you then increase the likelihood that you do not have any potential bugs due to misnamed variables and such. Since PHP does not require you to declare variables before using them, it is easy to accidentally try to reference a variable by the wrong name, potentially leading to difficult to debug problems. Fixing your code until there are no such notices removes many possible occurrences of such bugs.
I am therefore in favor of setting error_reporting to E_ALL | E_STRICT in your development environment and fixing all reported notices, though in the production server that's another question, where you then want to turn off display_errors and ensure all errors are being logged to a file, instead.