Skip to content

Commit

Permalink
Fixed Problem returning datatable response
Browse files Browse the repository at this point in the history
  • Loading branch information
emagombe committed Aug 13, 2020
1 parent 65c9d97 commit dd43295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ public function build() {

/* Return if no parameter sent */
if(!$params) {
return $response;
return json_encode($response);
}

/* Is empty */
if(!isset($params["columns"][0])) {
return $response;
return json_encode($response);
}

/* Sorting result */
Expand Down

0 comments on commit dd43295

Please sign in to comment.