Skip to content

Commit

Permalink
fix #207
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Mar 15, 2017
1 parent f7d0dbb commit fec8b5c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions api.php
Expand Up @@ -2636,14 +2636,6 @@ public function executeCommand() {
$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;
Expand Down

0 comments on commit fec8b5c

Please sign in to comment.