From fc83e264aadbf5c84a91af8c58629ac3802c2d74 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 22 Oct 2018 15:37:12 -0400 Subject: [PATCH] fix bugs lol --- web.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web.d b/web.d index db7e2da..4574172 100644 --- a/web.d +++ b/web.d @@ -3933,7 +3933,7 @@ bool checkPassword(string saltedPasswordHash, string userSuppliedPassword) { /// implements the "table" format option. Works on structs and associative arrays (string[string][]) Table structToTable(T)(Document document, T arr, string[] fieldsToSkip = null) if(isArray!(T) && !isAssociativeArray!(T)) { auto t = cast(Table) document.createElement("table"); - t.border = "1"; + t.attrs.border = "1"; static if(is(T == string[string][])) { string[string] allKeys; @@ -3963,7 +3963,7 @@ Table structToTable(T)(Document document, T arr, string[] fieldsToSkip = null) i odd = !odd; } - } else static if(is(typeof(T[0]) == struct)) { + } else static if(is(typeof(arr[0]) == struct)) { { auto thead = t.addChild("thead"); auto tr = thead.addChild("tr"); @@ -3985,7 +3985,7 @@ Table structToTable(T)(Document document, T arr, string[] fieldsToSkip = null) i odd = !odd; } - } else static assert(0); + } else static assert(0, T.stringof); return t; }