Pārlūkot izejas kodu

Fix an error with trim on the xm handler.

Mark Crane 12 gadi atpakaļ
vecāks
revīzija
607737e497
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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