From 0cf19a5fcf9347bc75a84dc35ed9e308c86b0ef8 Mon Sep 17 00:00:00 2001 From: haneul Date: Sun, 24 Aug 2008 17:17:49 +0000 Subject: [PATCH] =?UTF-8?q?http://www.zeroboard.com/xe=5Fissuetracker/1720?= =?UTF-8?q?3964=20column=EC=A0=88=EC=9D=B4=20=ED=95=98=EB=82=98=EB=A7=8C?= =?UTF-8?q?=20=EC=9E=88=EB=8A=94=20=EA=B2=BD=EC=9A=B0=20array=EC=97=90=20?= =?UTF-8?q?=EB=84=A3=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95=20-=20?= =?UTF-8?q?=EC=9D=BC=EB=B0=98=20QueryParser=EB=A5=BC=20=ED=95=AD=EC=83=81?= =?UTF-8?q?=20array=EB=A1=9C=20=EB=84=A3=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=ED=95=A0=20=ED=95=84=EC=9A=94=EA=B0=80=20=EC=9E=88?= =?UTF-8?q?=EB=8A=94=EC=A7=80=20=EA=B2=80=ED=86=A0=ED=95=B4=EC=95=BC?= =?UTF-8?q?=ED=95=A8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4454 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/xml/XmlQueryParser.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/classes/xml/XmlQueryParser.class.php b/classes/xml/XmlQueryParser.class.php index fbbd06181..2420b6b9c 100644 --- a/classes/xml/XmlQueryParser.class.php +++ b/classes/xml/XmlQueryParser.class.php @@ -63,6 +63,11 @@ $table_xml = FileHandler::readFile($table_file); $table_obj = parent::parse($table_xml); if($table_obj->table) { + if(isset($table_obj->table->column) && !is_array($table_obj->table->column)) + { + $table_obj->table->column = array($table_obj->table->column); + } + foreach($table_obj->table->column as $k => $v) { $buff .= sprintf('$output->column_type["%s"] = "%s";%s', $v->attrs->name, $v->attrs->type, "\n"); }