1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 07:44:49 +02:00

Null check for optional query string in e107::url()

This commit is contained in:
Nick Liu
2020-01-18 19:20:48 +01:00
parent 510d8e231f
commit 970f65b705

View File

@@ -3559,7 +3559,7 @@ class e107
// Avoid duplicate query keys. eg. URL has ?id=x and $options['query']['id'] exists.
// @see forum/e_url.php - topic/redirect and forum/view_shortcodes.php sc_post_url()
list($legacyUrl, $tmp) = explode("?", $legacyUrl);
list($legacyUrl, $tmp) = array_pad(explode("?", $legacyUrl), 2, null);
if (!empty($tmp))
{