Commit a09c457b authored by sylvieg's avatar sylvieg

[MOD]freetag: no need to reload the page if a tag is randomly supplied

parent 0c825c02
......@@ -46,7 +46,9 @@ if ($freetaglib->count_tags() == 0) {
if (!isset($_REQUEST['tag']) && $prefs['freetags_preload_random_search'] == 'y') {
$tag = $freetaglib->get_tag_suggestion('', 1);
header("Location: tiki-browse_freetags.php?tag=$tag[0]");
if (!empty($tag[0])) {
$_REQUEST['tag'] = $tag[0];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment