release
Showing
1 changed file
with
4 additions
and
5 deletions
| ... | @@ -149,11 +149,10 @@ class BaseController extends Controller | ... | @@ -149,11 +149,10 @@ class BaseController extends Controller |
| 149 | // ksort($v); | 149 | // ksort($v); |
| 150 | $array[$k] = $this->handleSubArrayNumber($v); | 150 | $array[$k] = $this->handleSubArrayNumber($v); |
| 151 | } else { | 151 | } else { |
| 152 | if ($v === '') { | 152 | $array = array_filter($array, function ($item) { |
| 153 | unset($array[$k]); | 153 | // if ($v === '' || $v === null) {} |
| 154 | continue; | 154 | return filled($item); |
| 155 | } | 155 | }); |
| 156 | $array[$k] = $v; | ||
| 157 | } | 156 | } |
| 158 | } | 157 | } |
| 159 | return $array; | 158 | return $array; | ... | ... |
-
Please register or sign in to post a comment