diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-04-02 02:01:53 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-04-17 04:44:35 +0300 |
commit | 2d721cf08386b16f75f979d962c81be7db1689d6 (patch) | |
tree | 016d6cc389ee9678dbace74ed7846770e856ae21 /plugins/SitesManager/Model.php | |
parent | 3899b9a3b042f01dab7f9d65266883c796d9b996 (diff) |
refs #3838 use pagination in SitesManager to be able to manage many hundreds or thousands of sites
Diffstat (limited to 'plugins/SitesManager/Model.php')
-rw-r--r-- | plugins/SitesManager/Model.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/SitesManager/Model.php b/plugins/SitesManager/Model.php index 0646453633..632792683f 100644 --- a/plugins/SitesManager/Model.php +++ b/plugins/SitesManager/Model.php @@ -357,8 +357,11 @@ class Model OR s.main_url like ? OR s.`group` like ? $where ) - AND idsite in ($ids_str) - LIMIT " . (int) $limit; + AND idsite in ($ids_str)"; + + if ($limit !== false) { + $query .= " LIMIT " . (int) $limit; + } $db = $this->getDb(); $sites = $db->fetchAll($query, $bind); |