fixes #1956 array_pop only takes input variable by reference

This commit is contained in:
plegall
2023-08-17 10:55:01 +02:00
parent d09f2cc3c8
commit da7fa96033

View File

@@ -111,7 +111,8 @@ SELECT id, name, permalink
$output = '';
if ($single_link)
{
$single_url = add_url_params(get_root_url().$url.array_pop(explode(',', $uppercats)), $add_url_params);
$uppercats_array = explode(',', $uppercats);
$single_url = add_url_params(get_root_url().$url.array_pop($uppercats_array), $add_url_params);
$output.= '<a href="'.$single_url.'"';
if (isset($link_class))
{