Code cleanup.
This commit is contained in:
parent
982255503a
commit
5389324558
1 changed files with 10 additions and 5 deletions
|
@ -223,6 +223,8 @@ $infos = array(
|
|||
|
||||
"openPut" => array('m'=>"locstor.openPut", 'p'=>array()),
|
||||
"closePut" => array('m'=>"locstor.closePut", 'p'=>array()),
|
||||
"ping" => array('m'=>"locstor.ping", 'p'=>array('par')),
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
@ -274,9 +276,12 @@ switch ($method) {
|
|||
} elseif(count($pinfo) == 0) {
|
||||
$parr = (object)array();
|
||||
} else {
|
||||
$parr = array(); $i=0;
|
||||
foreach($pinfo as $it){
|
||||
if(isset($pars[$i])) $parr[$it] = $pars[$i];
|
||||
$parr = array();
|
||||
$i = 0;
|
||||
foreach($pinfo as $it) {
|
||||
if (isset($pars[$i])) {
|
||||
$parr[$it] = $pars[$i];
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue