From 06d7c66ec0913f1d8a5fbb232c420ffb33fbae75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 10 Nov 2020 14:23:34 +0200 Subject: [PATCH] PDO: Fix swapped limit and offset parameters This got broken in 414c95b8 refactoring --- src/Xhgui/Db/PdoRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Xhgui/Db/PdoRepository.php b/src/Xhgui/Db/PdoRepository.php index d77bb3567..ccc8546c0 100644 --- a/src/Xhgui/Db/PdoRepository.php +++ b/src/Xhgui/Db/PdoRepository.php @@ -118,8 +118,8 @@ public function findByUrl(string $url, string $direction, int $skip, int $perPag LIMIT %d OFFSET %d', $this->table, $direction, - $skip, - $perPage + $perPage, + $skip ); $stmt = $this->pdo->prepare($query); $stmt->execute(['url' => '%' . $url . '%']);