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

Annotation of /rpms/smeserver-mailstats/contribs10/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 - (hide annotations) (download)
Thu Apr 16 09:59:29 2020 UTC (4 years, 6 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-mailstats-1_1-16_el7_sme, smeserver-mailstats-1_1-13_el7_sme, smeserver-mailstats-1_1-17_el7_sme, smeserver-mailstats-1_1-14_el7_sme, smeserver-mailstats-1_1-12_el7_sme, smeserver-mailstats-1_1-15_el7_sme, HEAD
*** empty log message ***

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:18:05.863943896 +0100
3     +++ smeserver-mailstats-1.1/root/usr/bin/mailstats.pl 2020-04-16 10:32:01.266838144 +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,8 @@
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     } else {
20     $display[$ncateg] = 'auto'
21     }

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