Added check for disable display_errors