From 4c94e7d57be4cd3b63c13ee99f0177c4f8b9281a Mon Sep 17 00:00:00 2001 From: ikkez Date: Fri, 28 Feb 2025 09:09:23 +0100 Subject: [PATCH] fix: failsafe when passing null to explode parameter --- base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base.php b/base.php index a7a62a48..a1998d1a 100644 --- a/base.php +++ b/base.php @@ -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) {