1 |
brianr |
1.1 |
diff -urN smeserver-mailstats-1.1.old/root/usr/bin/mailstats.pl smeserver-mailstats-1.1/root/usr/bin/mailstats.pl |
2 |
|
|
--- smeserver-mailstats-1.1.old/root/usr/bin/mailstats.pl 2020-04-16 10:17:55.382844842 +0100 |
3 |
|
|
+++ smeserver-mailstats-1.1/root/usr/bin/mailstats.pl 2020-04-16 10:32:07.299895149 +0100 |
4 |
|
|
@@ -29,6 +29,7 @@ |
5 |
|
|
# bjr - 30Apr17 - Change Categ index code - Bug 9888 again |
6 |
|
|
# bjr - 18Dec19 - Sort out a few format problems and also remove some debugging crud - Bug 10858 |
7 |
|
|
# bjr - 18Dec19 - change to fix truncation of email address in by email table - bug 10327 |
8 |
|
|
+# bjr - 16Apr20 - Eliminate Unitiailised varaibe when no data - bug 10928 |
9 |
|
|
# |
10 |
|
|
############################################################################# |
11 |
|
|
# |
12 |
|
|
@@ -385,7 +386,9 @@ |
13 |
|
|
$counts{$PERCENT}{$categs[$ncateg]} = 0; |
14 |
|
|
|
15 |
|
|
if ($cdb->get('mailstats')){ |
16 |
|
|
- $display[$ncateg] = lc($cdb->get('mailstats')->prop($categs[$ncateg])) || "auto"; |
17 |
|
|
+ $display[$ncateg] = $cdb->get('mailstats')->prop($categs[$ncateg]) || "auto"; |
18 |
|
|
+ $display[$ncateg] = lc($display[$ncateg]); |
19 |
|
|
+ |
20 |
|
|
} else { |
21 |
|
|
$display[$ncateg] = 'auto' |
22 |
|
|
} |