diff --git a/application/helpers/view_helper.php b/application/helpers/view_helper.php index 19a174f5..968987bd 100644 --- a/application/helpers/view_helper.php +++ b/application/helpers/view_helper.php @@ -1,10 +1,15 @@ 1) ? $num . " " . $str . "s" : $num . " " . $str; + if ($show_num) { + return ($num > 1) ? $num . " " . $str . "s" : $num . " " . $str; + } else { + return ($num > 1) ? $str . "s" : $str; + } + } diff --git a/application/views/layouts/sidebar.php b/application/views/layouts/sidebar.php index d7e12f59..e516f9c8 100644 --- a/application/views/layouts/sidebar.php +++ b/application/views/layouts/sidebar.php @@ -22,7 +22,8 @@ load->view('layouts/sidebar/sidebar_notices'); ?> diff --git a/application/views/layouts/sidebar/sidebar_notices.php b/application/views/layouts/sidebar/sidebar_notices.php index 7066bb5b..aa70c761 100644 --- a/application/views/layouts/sidebar/sidebar_notices.php +++ b/application/views/layouts/sidebar/sidebar_notices.php @@ -8,7 +8,7 @@