Browse Source

Fix an error with trim on the xm handler.

Mark Crane 12 năm trước cách đây
mục cha
commit
607737e497
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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