32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-27 02:12:50 +00:00

Fix missing global option default

This commit is contained in:
Francesco Abeni 2015-11-01 10:42:34 +01:00
parent 8bafcf32c1
commit 35e3f1f18a

View File

@ -33,7 +33,7 @@ class WeblinksViewCategory extends JViewCategory
{
$item->slug = $item->alias ? ($item->id . ':' . $item->alias) : $item->id;
if ($item->params->get('count_clicks', $this->params->get('count_clicks')) == 1)
if ($item->params->get('count_clicks', $this->params->get('count_clicks', 1)) == 1)
{
$item->link = JRoute::_('index.php?option=com_weblinks&task=weblink.go&id=' . $item->id);
}