From 1807fc9c85141e7bf23bd5c936396fc2bd1ee16d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 14 Jul 2005 16:48:53 +0000 Subject: [PATCH] * GROUP BY support in makeSelectOptions() --- includes/Database.php | 3 +++ 1 file changed, 3 insertions(+) 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']}"; } -- 2.20.1