mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
#119 board, forum, cafe 모듈 등이 포함되어 있을 때 설치 실패하는 문제 해결.
This commit is contained in:
parent
7daa63cedf
commit
67bd8691d1
3 changed files with 14 additions and 2 deletions
|
|
@ -582,11 +582,15 @@ class DBMysql extends DB
|
|||
function _executeUpdateAct($queryObject, $with_values = true)
|
||||
{
|
||||
$query = $this->getUpdateSql($queryObject, $with_values, true);
|
||||
$query .= (__DEBUG_QUERY__ & 1 && $this->query_id) ? sprintf(' ' . $this->comment_syntax, $this->query_id) : '';
|
||||
if(is_a($query, 'Object'))
|
||||
{
|
||||
return;
|
||||
if(!$query->toBool()) return $query;
|
||||
else return;
|
||||
}
|
||||
|
||||
$query .= (__DEBUG_QUERY__ & 1 && $this->query_id) ? sprintf(' ' . $this->comment_syntax, $this->query_id) : '';
|
||||
|
||||
|
||||
return $this->_query($query);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -402,6 +402,8 @@ class Query extends Object
|
|||
$update[] = $column->getExpression($with_values);
|
||||
}
|
||||
}
|
||||
|
||||
if(!$update) return;
|
||||
return trim(implode($update, ', '));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -263,6 +263,12 @@ class moduleController extends module
|
|||
$oModuleModel = &getModel('module');
|
||||
$columnList = array('sites.site_srl', 'sites.domain');
|
||||
$site_info = $oModuleModel->getSiteInfo($args->site_srl, $columnList);
|
||||
|
||||
if(!$args->domain && $site_info->site_srl == $args->site_srl)
|
||||
{
|
||||
$args->domain = $site_info->domain;
|
||||
}
|
||||
|
||||
if($site_info->domain != $args->domain)
|
||||
{
|
||||
$info = $oModuleModel->getSiteInfoByDomain($args->domain, $columnList);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue