fix #207
This commit is contained in:
parent
f7d0dbb4e8
commit
fec8b5ccef
1 changed files with 0 additions and 8 deletions
8
api.php
8
api.php
|
|
@ -2636,14 +2636,6 @@ class PHP_CRUD_API {
|
|||
$this->swagger($this->settings);
|
||||
} else {
|
||||
$parameters = $this->getParameters($this->settings);
|
||||
if ($parameters['before']) {
|
||||
if (count($parameters['inputs']) == 0) {
|
||||
for($i=1; $i <= count(explode(',', $parameters['key'][0])); $i++) {
|
||||
$parameters['inputs'][] = new stdClass();
|
||||
}
|
||||
}
|
||||
$this->applyBeforeHandler($parameters['action'], $parameters['database'],$parameters['tables'][0],$parameters['key'][0],$parameters['before'],$parameters['inputs']);
|
||||
}
|
||||
switch($parameters['action']){
|
||||
case 'list': $output = $this->listCommand($parameters); break;
|
||||
case 'read': $output = $this->readCommand($parameters); break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue