[TASK] Improve result handling for apis
This commit is contained in:
@@ -21,8 +21,7 @@ trait FormatResultTrait
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function formatResult()
|
||||
{
|
||||
public function formatResult($result) {
|
||||
if ($result == null) {
|
||||
$result = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user