mirror of
https://github.com/Mibew/design.git
synced 2024-11-15 09:24:12 +03:00
Fix early return from RequestProcessor::processRequest
This commit is contained in:
parent
bebe603a9b
commit
c26fc8bb26
@ -139,14 +139,14 @@ abstract class RequestProcessor {
|
||||
? array()
|
||||
: $callback['arguments'];
|
||||
call_user_func_array($function, array($arguments));
|
||||
return true;
|
||||
continue;
|
||||
} else {
|
||||
// Try to get result function
|
||||
$result_function = $this->mibewAPI->getResultFunction($request['functions']);
|
||||
|
||||
if (! is_null($result_function)) {
|
||||
// There is result function but no callback
|
||||
return true;
|
||||
continue;
|
||||
}
|
||||
|
||||
// There is no result function
|
||||
@ -170,10 +170,13 @@ abstract class RequestProcessor {
|
||||
}
|
||||
}
|
||||
|
||||
if ($request_package['async']) {
|
||||
$this->sendAsyncResponses($this->responses);
|
||||
} else {
|
||||
$this->sendSyncResponses($this->responses);
|
||||
if (count($this->responses) != 0) {
|
||||
// Send responses
|
||||
if ($request_package['async']) {
|
||||
$this->sendAsyncResponses($this->responses);
|
||||
} else {
|
||||
$this->sendSyncResponses($this->responses);
|
||||
}
|
||||
}
|
||||
|
||||
// Output response
|
||||
|
Loading…
Reference in New Issue
Block a user