// Generate monthly stats
$SW = 2; $r2 = ' right'; $l = 'll'; $r = 'lr'; $OUT = '';
- foreach ($months as $month => $cnt) {
+ foreach ($months as $month => $count) {
if ($SW == 2) $OUT .= '<tr>';
// Prepare data for template
'm_descr' => $GLOBALS['month_descr'][$month],
'r_class' => $r,
'r2_class' => $r2,
- 'cnt' => $cnt
+ 'cnt' => $count
);
// Load row template
// Generate category stats
$OUT = '';
- foreach ($cat_cnt as $id => $cnt) {
+ foreach ($cat_cnt as $id => $count) {
// Prepare data for the template
$data = array(
'cat' => $cats[$id],
- 'cnt' => $cnt,
+ 'cnt' => $count,
);
// Load row template and switch colors