Explorar o código

Fix an error with trim on the xm handler.

Mark Crane %!s(int64=12) %!d(string=hai) anos
pai
achega
607737e497
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      includes/install/scripts/xml_handler.lua

+ 1 - 0
includes/install/scripts/xml_handler.lua

@@ -54,6 +54,7 @@
 
 --add the trim function
 	function trim(s)
+		if (s == nil) then s = ''; end
 		return s:gsub("^%s+", ""):gsub("%s+$", "")
 	end