<?php

/*
Plugin Name: Hide errors
Description: Hide PHP errors; show errors (after init) for admin users. <code>error_reporting</code> level is not changed. 
Author: Sam
Version: 0.1
*/

ini_set('display_errors', 0);
add_action('init', 'my_hide_errors');

function my_hide_errors() {
	ini_set('display_errors', (bool) current_user_can('manage_options'));
	$GLOBALS['wpdb']->hide_errors();
}

?>