/** * Check and display the SQL report if requested. * * @param \src\request\request_interface $request Request object * @param \src\auth\auth $auth Auth object * @param \src\db\driver\driver_interface $db Database connection */ function src_check_and_display_sql_report(\src\request\request_interface $request, \src\auth\auth $auth, \src\db\driver\driver_interface $db) { if ($request->variable('explain', false) && $auth->acl_get('a_') && defined('DEBUG')) { $db->sql_report('display'); } }