Skip to content

Commit

Permalink
Null check for optional query string in e107::url()
Browse files Browse the repository at this point in the history
  • Loading branch information
Deltik committed Jan 18, 2020
1 parent 510d8e2 commit 970f65b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e107_handlers/e107_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -3559,7 +3559,7 @@ public static function url($plugin = '', $key = null, $row = array(), $options =

// 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))
{
Expand Down

0 comments on commit 970f65b

Please sign in to comment.