plugins/mod_admin_shell.lua
branch0.12
changeset 12509 604bb5b8362d
parent 12308 8210c2a52e9c
child 12510 d04f6f014636
child 12641 2200f0c6b3f1
--- a/plugins/mod_admin_shell.lua	Mon May 09 22:39:05 2022 +0200
+++ b/plugins/mod_admin_shell.lua	Sun May 15 23:16:14 2022 +0200
@@ -49,12 +49,12 @@
 end
 
 local function pre(prefix, str, alt)
-	if (str or "") == "" then return alt or ""; end
+	if type(str) ~= "string" or str == "" then return alt or ""; end
 	return prefix .. str;
 end
 
 local function suf(str, suffix, alt)
-	if (str or "") == "" then return alt or ""; end
+	if type(str) ~= "string" or str == "" then return alt or ""; end
 	return str .. suffix;
 end