diff --git a/dblayeroo.php b/dblayeroo.php index ad24446..0740993 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -2148,8 +2148,17 @@ class dblayeroo $this->sep.".".$o; } } + elseif ($this->displayColumn !== null) + { + foreach ($this->displayColumn as $name) + { + $localGroupBy[] = $this->displayConvert ($name, true); + } + } else - $localGroupBy = $this->displayGet (true); + { + // Nothing to return if there is no groupBy and nothing to display + } } else {