포인트 모듈에서 숫자만 설정 되도록 변경, 모듈별 포인트가 0일때도 처리 되도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2644 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
k10206 2007-09-26 04:22:04 +00:00
parent 3565adecc4
commit 26c508db41
2 changed files with 13 additions and 13 deletions

View file

@ -61,10 +61,10 @@
// 변수 정리
$args = Context::getRequestVars();
$config->insert_document = $args->insert_document;
$config->insert_comment = $args->insert_comment;
$config->upload_file = $args->upload_file;
$config->download_file = $args->download_file;
$config->insert_document = (int)$args->insert_document;
$config->insert_comment = (int)$args->insert_comment;
$config->upload_file = (int)$args->upload_file;
$config->download_file = (int)$args->download_file;
foreach($args as $key => $val) {
preg_match("/^(insert_document|insert_comment|upload_file|download_file)_([0-9]+)$/", $key, $matches);
@ -72,7 +72,7 @@
$name = $matches[1];
$module_srl = $matches[2];
if(strlen($val)==0) unset($config->module_point[$module_srl][$name]);
else $config->module_point[$module_srl][$name] = $val;
else $config->module_point[$module_srl][$name] = (int)$val;
}
// 저장
@ -120,7 +120,7 @@
$point = Context::get('point');
$oPointController = &getController('point');
return $oPointController->setPoint($member_srl, $point);
return $oPointController->setPoint($member_srl, (int)$point);
}
/**