From 2d48b2ab005ccf0bd51cdcb9ae80296687ba350f Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Wed, 18 Jul 2012 10:41:43 -0400 Subject: [PATCH] Fixed inaccurate list count. --- module/VuFind/src/VuFind/Db/Row/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Db/Row/User.php b/module/VuFind/src/VuFind/Db/Row/User.php index 11509bf1218..1c8f404a12f 100644 --- a/module/VuFind/src/VuFind/Db/Row/User.php +++ b/module/VuFind/src/VuFind/Db/Row/User.php @@ -203,7 +203,7 @@ class User extends RowGateway array( '*', 'cnt' => new Expression( - 'COUNT(?)', array('ur.list_id'), + 'COUNT(DISTINCT(?))', array('ur.resource_id'), array(Expression::TYPE_IDENTIFIER) ) ) -- GitLab