From 2595e0c6573b88ac0902ef2668b28bf199b1b594 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sun, 12 Dec 2010 21:09:18 +0800 Subject: [PATCH] Pman/Roo.php --- Pman/Roo.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Pman/Roo.php b/Pman/Roo.php index fe3a6ac..b38fe3c 100644 --- a/Pman/Roo.php +++ b/Pman/Roo.php @@ -641,6 +641,9 @@ class Pman_Roo extends Pman function loadMap($do, $filter=false, $distinct = false) { //DB_DataObject::debugLevel(1); + + $this->countWhat = false; + $conf = array(); $this->init(); @@ -689,7 +692,7 @@ class Pman_Roo extends Pman $do->selectAdd(); // we need thsi as normally it's only cleared by an empty selectAs call. $selectAs = array(array( $xx , '%s', false)); - $this->countWhat = false; + $has_distinct = false; if ($filter || $distinct) { $cols = array(); -- 2.39.2