From: Greg Sabino Mullane Date: Wed, 21 Mar 2007 18:54:50 +0000 (+0000) Subject: Add all terms to group by, although I'm not sure about the previous commit as it... X-Git-Tag: 1.31.0-rc.0~53653 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=3664cf04d8de010fa01b9cba747413322ac3e292;p=lhc%2Fweb%2Fwiklou.git Add all terms to group by, although I'm not sure about the previous commit as it kind of negates the whole purpose of adding the pr_id column. --- diff --git a/includes/SpecialProtectedpages.php b/includes/SpecialProtectedpages.php index cf72799599..91c978a860 100644 --- a/includes/SpecialProtectedpages.php +++ b/includes/SpecialProtectedpages.php @@ -222,7 +222,7 @@ class ProtectedPagesPager extends ReverseChronologicalPager { 'tables' => array( 'page_restrictions', 'page' ), 'fields' => 'max(pr_id) AS pr_id,page_namespace,page_title,page_len,pr_type,pr_level,pr_expiry', 'conds' => $conds, - 'options' => array( 'GROUP BY' => 'page_namespace,page_title,pr_level,pr_expiry' ), + 'options' => array( 'GROUP BY' => 'page_namespace,page_title,pr_level,pr_expiry,page_len,pr_type' ), ); }