/[smecontribs]/rpms/smeserver-mailstats/contribs9/smeserver-mailstats-1.1-uninitialised-variable-on-no-data
ViewVC logotype

Contents of /rpms/smeserver-mailstats/contribs9/smeserver-mailstats-1.1-uninitialised-variable-on-no-data

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Apr 16 09:54:37 2020 UTC (4 years, 6 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-mailstats-1_1-12_el6_sme, HEAD
*** empty log message ***

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 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed