Index: branches/robchurch/reports/includes/reports/ReportPager.php |
— | — | @@ -64,6 +64,7 @@ |
65 | 65 | . ' WHERE ' . implode( ' AND ', $conds ) |
66 | 66 | . $this->report->getExtraSql( $this->mDb ) |
67 | 67 | . ' ' . implode( ' ', $options ); |
| 68 | + $sql = preg_replace( '!\s{2,}!ui', ' ', $sql ); |
68 | 69 | wfDebugLog( 'reports', __METHOD__ . " executing `{$sql}`" ); |
69 | 70 | $this->mResult = new ResultWrapper( |
70 | 71 | $this->mDb, |