6
Quote:
Dave_L wrote:
So error_reporting(0) should be forced unless the current user is an admin?
My only issue with that is you may want to test the script while logged in as a normal user, or while not logged in, and in that case you may want to see the notices.
Maybe another config option would be the way to handle that.
I personally think that this makes a site look very unprofessional. In all the time I have been testing my modules only once or twice have I ever had to logout when debugging.
I help run a website, tech support I guess and the webmaster freaks out everytime they see that on their website and no matter how many time you tell them, they do not like seeing it when they are not logged in as webmaster.
I think that this should be an option in config, to allow admin to choose if debugging errors should be displayed to which group and not for everyone to see.
Just my thoughts on this.