Skip to content

Commit

Permalink
修复数组工具类bug
Browse files Browse the repository at this point in the history
`paraFilter` 方法之前无法识别 `false` 与 空差别,使用 `===`来进行判断
  • Loading branch information
helei112g committed Apr 19, 2017
1 parent e3e4a91 commit 9570a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/ArrayUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function paraFilter($para)
{
$paraFilter = [];
while (list($key, $val) = each($para)) {
if ($val == "") {
if ($val === '') {
continue;
} else {
if (! is_array($para[$key])) {
Expand Down

0 comments on commit 9570a17

Please sign in to comment.