Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #608 from foaly-nr1/patch-render-options
Browse files Browse the repository at this point in the history
Encode empty arrays too
  • Loading branch information
stwe authored May 26, 2017
2 parents 3a14628 + 0c071eb commit 24b6cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Datatable/OptionsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private function callingSettersWithOptions(array $options)
*/
protected function optionToJson($value)
{
if (is_array($value) && !empty($value)) {
if (is_array($value)) {
return json_encode($value);
}

Expand Down

0 comments on commit 24b6cde

Please sign in to comment.