From: Ævar Arnfjörð Bjarmason Date: Thu, 14 Jul 2005 16:48:53 +0000 (+0000) Subject: * GROUP BY support in makeSelectOptions() X-Git-Tag: 1.5.0beta4~130 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=1807fc9c85141e7bf23bd5c936396fc2bd1ee16d;p=lhc%2Fweb%2Fwiklou.git * GROUP BY support in makeSelectOptions() --- diff --git a/includes/Database.php b/includes/Database.php index 375756facf..98bf45eddf 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -660,6 +660,9 @@ class Database { function makeSelectOptions( $options ) { $tailOpts = ''; + if ( isset( $options['GROUP BY'] ) ) { + $tailOpts .= " GROUP BY {$options['GROUP BY']}"; + } if ( isset( $options['ORDER BY'] ) ) { $tailOpts .= " ORDER BY {$options['ORDER BY']}"; }