Skip to content

Commit

Permalink
fix: failsafe when passing null to explode parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Feb 28, 2025
1 parent 83b1ba7 commit 4c94e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ private function cut($key) {
function build($url, $args=[], $addParams=TRUE) {
if ($addParams)
$args+=$this->recursive($this->hive['PARAMS'], function($val) {
return implode('/', array_map('urlencode', explode('/', $val)));
return implode('/', array_map('urlencode', explode('/', $val ?? '')));
});
if (is_array($url))
foreach ($url as &$var) {
Expand Down

0 comments on commit 4c94e7d

Please sign in to comment.