Skip to content
Browse files

# [#29473] Fixed issue with hits_class not being defined when hits is

24. Thanks Peter.
  • Loading branch information...
1 parent 8e940ae commit cb7564f883fb2187af97df65b64c65cced95df67 Peter van Westen committed with infograf768 Nov 14, 2012
Showing with 2 additions and 5 deletions.
  1. +1 −5 administrator/modules/mod_popular/tmpl/default.php
  2. +1 −0 installation/CHANGELOG
View
6 administrator/modules/mod_popular/tmpl/default.php
@@ -16,11 +16,7 @@
<?php foreach ($list as $i => $item) :
// Calculate popular items
$hits = (int) $item->hits;
-
- if($hits >= 25) $hits_class = 'warning';
- if($hits > 100) $hits_class = 'important';
- if($hits < 24) $hits_class = 'info';
- if($hits < 10) $hits_class = '';
+ $hits_class = $hits >= 100 ? 'important' : $hits >= 25 ? 'warning' : $hits >= 10 ? 'info' : '';
?>
<div class="row-fluid">
<div class="span9">
View
1 installation/CHANGELOG
@@ -29,6 +29,7 @@ $ -> Language fix or change
14-Nov-2012 Jean-Marie Simonet
# [#29558] Incorrect current menu item highlighting in mod_menu if 'Base Item' is not current. Thanks Dennis
# [#29619] In the current version 3.0.2 (master branch, 03. Nov. 2012) some settings aren't working. Thanks Benjamin.
+ # [#29473] Fixed issue with hits_class not being defined when hits is 24. Thanks Peter.
13-Nov-2012 Jean-Marie Simonet
#$ [#29669] Consistent form validation notifications. Thanks Roland

0 comments on commit cb7564f

Please sign in to comment.
Something went wrong with that request. Please try again.