changeset 2236:ee8beeddd28d

diff action: fix UnboundLocalError caused by invalid rev2 argument
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 21 Jun 2007 09:45:16 +0200
parents fcb18262e270
children 4238e46245d4
files MoinMoin/action/diff.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/diff.py	Mon Jun 04 17:35:42 2007 +0200
+++ b/MoinMoin/action/diff.py	Thu Jun 21 09:45:16 2007 +0200
@@ -36,7 +36,7 @@
     try:
         rev2 = int(request.form.get('rev2', [0])[0])
     except StandardError:
-        rev1 = 0
+        rev2 = 0
 
     if rev1 == -1 and rev2 == 0:
         rev1 = request.rev