Skip to content

Commit

Permalink
change empty args code
Browse files Browse the repository at this point in the history
  • Loading branch information
DoveChen committed Jun 21, 2022
1 parent 9f604f2 commit df6f421
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/utils/HttpUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public static function MakeUrl ($queryArgs)
public static function Array2Json ($arr)
{
if(empty($arr)){
if (is_array($arr)) {
return '[]';
}
return '{}';
}
$parts = [];
Expand Down

0 comments on commit df6f421

Please sign in to comment.