Selaa lähdekoodia

Fix an error with trim on the xm handler.

Mark Crane 12 vuotta sitten
vanhempi
commit
607737e497
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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