changeset 28:61fb1a6de2c5

Fixing timestamp entry sometimes left
author Dominic Cleal <dominic@computerkb.co.uk>
date Sun, 25 Jan 2009 17:36:03 +0000
parents 789877ff0e1a
children 420807d41e04
files reproctool.cgi
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/reproctool.cgi	Sun Jan 25 17:33:07 2009 +0000
+++ b/reproctool.cgi	Sun Jan 25 17:36:03 2009 +0000
@@ -56,10 +56,6 @@
         {
             $marks = undef;
         }
-        else
-        {
-            delete $marks->{timestamp};
-        }
     }
     
     unless ($marks)
@@ -96,6 +92,8 @@
         }
     }
     
+    delete $marks->{timestamp} if exists $marks->{timestamp};
+    
     # What evenutally will be printed.
     print<<END;
 <html>