mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 07:12:15 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@980 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
959560097b
commit
8fa67e9e3f
3 changed files with 6 additions and 8 deletions
|
|
@ -366,11 +366,9 @@
|
|||
foreach($column as $key => $val) {
|
||||
// args에 아예 해당 key가 없으면 패스
|
||||
if(!isset($args->{$key})) continue;
|
||||
if(in_array($key, $pass_quotes)) $update_list[] = sprintf('`%s` = %s', $key, $this->addQuotes($val));
|
||||
else {
|
||||
if(is_numeric($val)) $update_list[] = sprintf('`%s` = %s', $key, $val);
|
||||
else $update_list[] = sprintf('`%s` = \'%s\'', $key, $this->addQuotes($val));
|
||||
}
|
||||
$val = $this->addQuotes($val);
|
||||
if(is_numeric($val) || in_array($key, $pass_quotes)) $update_list[] = sprintf('`%s` = %s', $key, $val);
|
||||
else $update_list[] = sprintf('`%s` = \'%s\'', $key, $this->addQuotes($val));
|
||||
}
|
||||
if(!count($update_list)) return;
|
||||
$update_query = implode(',',$update_list);
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@
|
|||
* @brief column, condition등의 key에 default 값을 세팅
|
||||
**/
|
||||
function _getDefaultCode($name, $value) {
|
||||
if(!isset($value)) return;
|
||||
if($value == NULL) return;
|
||||
if(substr($value, -1)!=')') return sprintf('if(!$args->%s) $args->%s = \'%s\';'."\n", $name, $name, $value);
|
||||
|
||||
$str_pos = strpos($value, '(');
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
<table name="editor_components" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="enabled" var="enabled" />
|
||||
<column name="enabled" var="enabled" default="N" />
|
||||
<column name="extra_vars" var="extra_vars" />
|
||||
<column name="list_order" var="list_order"/>
|
||||
<column name="list_order" var="list_order" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="component_name" var="component_name" notnull="notnull" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue