diff --git a/mod_dashboard.xml b/mod_dashboard.xml index 94815cd..dc9337d 100644 --- a/mod_dashboard.xml +++ b/mod_dashboard.xml @@ -5,7 +5,7 @@ 2023 yannick@com3elles.com www.com3elles.com - 3.1.1 + 3.1.2 Copyright (C) 2008 - 2022 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt MOD_DASHBOARD_INTRO diff --git a/tmpl/default.php b/tmpl/default.php index 633bc76..0bd31cb 100644 --- a/tmpl/default.php +++ b/tmpl/default.php @@ -506,25 +506,25 @@ //var_dump($catidslist);die; switch ($block->TypofBlock) { case ('fb'): - $show_all_link = 'index.php?option=com_content&view=featured' . implode('', $catidslist); + $show_all_link = 'index.php?option=com_content&view=featured' . empty($catidslist) ? '' : implode('', $catidslist); break; case ('pb'): - $show_all_link = 'index.php?option=com_content&view=articles&filter[published]=1' . implode('', $catidslist); + $show_all_link = 'index.php?option=com_content&view=articles&filter[published]=1' . empty($catidslist) ? '' : implode('', $catidslist); break; case ('upb'): - $show_all_link = 'index.php?option=com_content&view=articles&filter[published]=0' . implode('', $catidslist); + $show_all_link = 'index.php?option=com_content&view=articles&filter[published]=0' . empty($catidslist) ? '' : implode('', $catidslist); break; case ('ab'): - $show_all_link = 'index.php?option=com_content&view=articles&filter[published]=2' . implode('', $catidslist); + $show_all_link = 'index.php?option=com_content&view=articles&filter[published]=2' . empty($catidslist) ? '' : implode('', $catidslist); break; case ('tb'): - $show_all_link = 'index.php?option=com_content&view=articles&filter[published]=-2' . implode('', $catidslist); + $show_all_link = 'index.php?option=com_content&view=articles&filter[published]=-2' . empty($catidslist) ? '' : implode('', $catidslist); break; case ('ub'): - $show_all_link = 'index.php?option=com_content&view=articles&filter[author_id]=' . $user->id . implode('', $catidslist); + $show_all_link = 'index.php?option=com_content&view=articles&filter[author_id]=' . $user->id . empty($catidslist) ? '' : implode('', $catidslist); break; case ('cb'): - $show_all_link = 'index.php?option=com_content&view=articles&filter[author_id]=' . $user->id . implode('', $catidslist); + $show_all_link = 'index.php?option=com_content&view=articles&filter[author_id]=' . $user->id . empty($catidslist) ? '' : implode('', $catidslist); break; } diff --git a/update.xml b/update.xml index 00e5135..c5b1774 100644 --- a/update.xml +++ b/update.xml @@ -6,14 +6,14 @@ mod_dashboard module administrator - 3.1.1 + 3.1.2 https://github.com/micker/mod_dashboard/wiki - https://github.com/micker/mod_dashboard/archive/v3.1.1.zip + https://github.com/micker/mod_dashboard/archive/v3.1.2.zip