From 00bc2fbd27972d9242b7dc6f9fdbda6f476b8674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Tue, 13 Mar 2007 18:29:28 +0000 Subject: [PATCH] Add comment for distribution::objectGetEntries()'s LIMIT behavior --- include/distribution.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/distribution.php b/include/distribution.php index 5c0fe65..0934b99 100644 --- a/include/distribution.php +++ b/include/distribution.php @@ -420,8 +420,9 @@ class distribution { if($bQueued && !distribution::canEdit()) return NULL; + /* If row limit is 0 we want to fetch all rows */ if(!$iRows) - $iRows = distribution::getNumberOfDistributions($bQueued); + $iRows = distribution::objectGetEntriesCount($bQueued); $sQuery = "SELECT * FROM distributions WHERE queued = '?' ORDER BY name LIMIT ?,?";