Code

- fixed filter() with no sort/group (sf bug 618614)
[roundup.git] / roundup / cgi / client.py
index df85b0c85d596b753b84e39327bce2c1fa79c2c6..46167ebfaf52118a0ac38c5fca75d84fd10765af 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.49 2002-10-03 06:56:29 richard Exp $
+# $Id: client.py,v 1.50 2002-10-07 00:52:51 richard Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -603,8 +603,8 @@ class Client:
         # re-open the database for real, using the user
         self.opendb(self.user)
 
-        # update the user's session
-        if self.session:
+        # if we have a session, update it
+        if hasattr(self, 'session'):
             self.db.sessions.set(self.session, user=self.user,
                 last_use=time.time())
         else: