Issue 1862: Insert site query fails

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10545 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2012-04-09 13:17:53 +00:00
parent 6394a5c278
commit 497f7f30bd

View file

@ -11,7 +11,8 @@
function getTableInfo($query_id, $table_name) {
$column_type = array();
$module = '';
$id_args = explode('.', $query_id);
if (count($id_args) == 2) {
$target = 'modules';
@ -23,9 +24,7 @@
return;
$module = $id_args[1];
$id = $id_args[2];
} else {
return $column_type;
}
}
// get column properties from the table
$table_file = sprintf('%s%s/%s/schemas/%s.xml', _XE_PATH_, 'modules', $module, $table_name);