Changeset

11155:8d692a8a8f48

mod_http_errors: Remove 'extra' element when empty
author Kim Alvefur <zash@zash.se>
date Mon, 12 Oct 2020 18:27:42 +0200
parents 11154:dd81a318a794
children 11158:3a72cb126d6c
files plugins/mod_http_errors.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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>
 ]];