...actually remove the LIMIT from the SQL statement
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 28 Jul 2010 14:48:52 +0000 (10:48 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 28 Jul 2010 14:48:52 +0000 (10:48 -0400)
news/lib/Driver/sql.php

index 6c6d755..6070a5c 100644 (file)
@@ -585,8 +585,7 @@ class News_Driver_sql extends News_Driver {
         }
 
         $sql = 'SELECT l.tags, n.publish FROM ' . $this->prefix . '_body AS l, '
-               . $this->prefix . ' AS n WHERE l.lang = ? AND n.id = l.id AND n.status = ? ORDER BY n.publish DESC LIMIT 0, '
-               . ($minimize ? '100' : '500');
+               . $this->prefix . ' AS n WHERE l.lang = ? AND n.id = l.id AND n.status = ? ORDER BY n.publish DESC';
 
         $result = $this->db->limitQuery($sql, 0, ($minimize ? '100' : '500'), array($GLOBALS['registry']->preferredLang(), News::CONFIRMED));
         if ($result instanceof PEAR_Error) {