From 35dcb5e39aee8029fee541d5649456bc385cd649 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sun, 15 Sep 2013 11:29:31 +0200 Subject: [PATCH] Issue #155 : correction bug prefix table SQL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le préfixe freshrss_ était rentré en dur dans une des requêtes --- app/models/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/Entry.php b/app/models/Entry.php index d73ce7245..ed350cad8 100755 --- a/app/models/Entry.php +++ b/app/models/Entry.php @@ -399,7 +399,7 @@ class EntryDAO extends Model_pdo { $where .= ' AND is_read = 1'; } if (!empty($limitFromId)) { //TODO: Consider using LPAD(e.date, 11) //CONCAT is for cases when many entries have the same date - $where .= ' AND CONCAT(e.date, e.id) ' . ($order === 'low_to_high' ? '<=' : '>=') . ' (SELECT CONCAT(s.date, s.id) from freshrss_entry s WHERE s.id = "' . $limitFromId . '")'; + $where .= ' AND CONCAT(e.date, e.id) ' . ($order === 'low_to_high' ? '<=' : '>=') . ' (SELECT CONCAT(s.date, s.id) FROM ' . $this->prefix . 'entry s WHERE s.id = "' . $limitFromId . '")'; } if ($order == 'low_to_high') {