Assign result.
authorJan Schneider <jan@horde.org>
Mon, 23 Aug 2010 13:18:06 +0000 (15:18 +0200)
committerJan Schneider <jan@horde.org>
Mon, 23 Aug 2010 13:18:06 +0000 (15:18 +0200)
imp/lib/Sentmail/Sql.php

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