getValue ($query, ['invoice' => (int) $_GET['invoice']]); if (!$pdfPath) throw new Exception (s('Invoice id not found')); Vn\Web\printFile ($pdfPath); } catch (Exception $e) { error_log ($e->getMessage ()); header ('HTTP/1.0 500 Internal Server Error'); } Web::deinit (); ?>