Skip to content

Commit

Permalink
compatible php 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbidepro committed Dec 19, 2018
1 parent cfcdc9b commit a8b074d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/EC.Open.Server/src/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ abstract class Controller extends BaseController
*/
public function success($data = [], $code = Response::HTTP_OK, $status = true)
{
return new Response(['status' => $status, 'code' => $code, 'data' => (0 == count($data) or empty($data)) ? null : $data]);
return new Response(['status' => $status, 'code' => $code, 'data' => empty($data) ? null : $data]);
}

/**
Expand Down

0 comments on commit a8b074d

Please sign in to comment.