mod_http_errors: Remove 'extra' element when empty
authorKim Alvefur <zash@zash.se>
Mon, 12 Oct 2020 18:27:42 +0200
changeset 11159 8d692a8a8f48
parent 11158 dd81a318a794
child 11162 3a72cb126d6c
mod_http_errors: Remove 'extra' element when empty
plugins/mod_http_errors.lua
--- a/plugins/mod_http_errors.lua	Mon Oct 12 18:16:18 2020 +0200
+++ b/plugins/mod_http_errors.lua	Mon Oct 12 18:27:42 2020 +0200
@@ -57,7 +57,7 @@
 <body>
 <h1>{title}</h1>
 <p>{message}</p>
-<p class="extra">{extra?}</p>
+{extra&<p class="extra">{extra?}</p>}
 </body>
 </html>
 ]];