Fix variable name.
authorJan Schneider <jan@horde.org>
Wed, 28 Jul 2010 10:38:57 +0000 (12:38 +0200)
committerJan Schneider <jan@horde.org>
Wed, 28 Jul 2010 10:38:57 +0000 (12:38 +0200)
imp/lib/Sentmail/Sql.php

index 82157c6..5287949 100644 (file)
@@ -122,7 +122,7 @@ class IMP_Sentmail_Sql extends IMP_Sentmail_Driver
 
         /* Execute the query. */
         try {
-            $this->_db->addLimitOffset($sql, array('limit' => $limit));
+            $this->_db->addLimitOffset($query, array('limit' => $limit));
             return $this->_db->selectValues($query);
         } catch (Horde_Db_Exception $e) {
             throw new IMP_Exception($e);