瀏覽代碼

Fix an error with trim on the xm handler.

Mark Crane 12 年之前
父節點
當前提交
607737e497
共有 1 個文件被更改,包括 1 次插入0 次删除
  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