[m-dev.] diff: w3 year type bug

Peter Ross petdr at cs.mu.OZ.AU
Mon Jan 10 16:36:29 AEDT 2000


Hi,


===================================================================


Estimated hours taken: 0.25

w3/mailing-lists/include/list.inc:
    Fix a type error where the two years being compared were two digit
    and four digit years, and hence never equal.

Index: w3/mailing-lists/include/list.inc
===================================================================
RCS file: /home/staff/zs/imp/w3/mailing-lists/include/list.inc,v
retrieving revision 1.4
diff -u -r1.4 list.inc
--- w3/mailing-lists/include/list.inc	1999/12/06 02:56:48	1.4
+++ w3/mailing-lists/include/list.inc	2000/01/10 05:30:13
@@ -31,7 +31,7 @@
 
     while ($mo <= 12)
     {
-        if ($yr == $current_year && $mo > $current_month)
+        if ($yr == date("Y") && $mo > $current_month)
         {
             break;
         }

----
Peter Ross
PhD Student University of Melbourne
http://www.cs.mu.oz.au/~petdr/
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list