VirtualMailManager/domain.py
changeset 611 8e9b0046bc8f
parent 568 14abdd04ddf5
child 615 5882bfdf83e8
--- a/VirtualMailManager/domain.py	Mon Sep 03 22:40:01 2012 +0000
+++ b/VirtualMailManager/domain.py	Wed Sep 05 21:30:42 2012 +0000
@@ -462,8 +462,8 @@
         """Returns a list with all catchall e-mail addresses of the domain."""
         self._chk_state()
         dbc = self._dbh.cursor()
-        dbc.execute('SELECT DISTINCT destination FROM catchall WHERE gid = %s ORDER '
-                    'BY destination', (self._gid,))
+        dbc.execute('SELECT DISTINCT destination FROM catchall WHERE gid = %s '
+                    'ORDER BY destination', (self._gid,))
         addresses = dbc.fetchall()
         dbc.close()
         return addresses