projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c821db4
)
Pman/Roo.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 11 Nov 2010 11:18:56 +0000
(19:18 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 11 Nov 2010 11:18:56 +0000
(19:18 +0800)
Pman/Roo.php
patch
|
blob
|
history
diff --git
a/Pman/Roo.php
b/Pman/Roo.php
index
f7af088
..
3122b1a
100644
(file)
--- a/
Pman/Roo.php
+++ b/
Pman/Roo.php
@@
-709,7
+709,7
@@
class Pman_Roo extends Pman
$cols = array();
foreach($xx as $c) {
$tn = sprintf($ocl.'_%s', $c);
- if ($tn == $distinct) {
+ if ($
distinct && $
tn == $distinct) {
$has_distinct = 'DISTINCT( ' . 'join_'.$ocl.'_'.$col.'.'.$k .') as ' . $tc ;
$this->countWhat = 'DISTINCT join_'.$ocl.'_'.$col.'.'.$k;
continue;