Skip to content

Commit 1f10f7c

Browse files
committed
Avoid deprecation warning
1 parent a7ac0f2 commit 1f10f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Zend/Controller/Router/Route/Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function assemble($data = [], $reset = false, $encode = true, $partial =
261261
}
262262
} else {
263263
if ($encode) {
264-
$value = urlencode($value);
264+
$value = urlencode($value ?? '');
265265
}
266266
$url .= self::URI_DELIMITER . $key;
267267
$url .= self::URI_DELIMITER . $value;

0 commit comments

Comments
 (0)