681a9b2d 오류 수정.

This commit is contained in:
bnu 2013-11-22 15:02:09 +09:00
parent 63e0fd6f3b
commit a38169cfb1

View file

@ -1120,11 +1120,11 @@ class Context
*/ */
function _setRequestArgument() function _setRequestArgument()
{ {
if(count($_REQUEST) > 0) if(!count($_REQUEST))
{ {
return; return;
} }
$requestMethod = $this->getRequestMethod(); $requestMethod = $this->getRequestMethod();
foreach($_REQUEST as $key => $val) foreach($_REQUEST as $key => $val)
{ {
@ -1214,16 +1214,18 @@ class Context
{ {
return; return;
} }
$oXml = new XmlParser(); $oXml = new XmlParser();
$xml_obj = $oXml->parse(); $xml_obj = $oXml->parse();
$params = $xml_obj->methodcall->params; $params = $xml_obj->methodcall->params;
unset($params->node_name, $params->attrs); unset($params->node_name, $params->attrs);
if(count($params) > 0) if(!count($params))
{ {
return; return;
} }
foreach($params as $key => $obj) foreach($params as $key => $obj)
{ {
$this->set($key, $this->_filterRequestVar($key, $obj->body, 0), TRUE); $this->set($key, $this->_filterRequestVar($key, $obj->body, 0), TRUE);