@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | $year_data = []; |
| 106 | 106 | $first_post = $this->_compute_welcome_first_post(); |
| 107 | 107 | $this->_request_data['first_post'] = $first_post; |
| 108 | - $this->_request_data['total_count'] =& $total_count; |
|
| 109 | - $this->_request_data['year_data'] =& $year_data; |
|
| 108 | + $this->_request_data['total_count'] = & $total_count; |
|
| 109 | + $this->_request_data['year_data'] = & $year_data; |
|
| 110 | 110 | if (!$first_post) { |
| 111 | 111 | return; |
| 112 | 112 | } |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | |
| 242 | 242 | if ($category) { |
| 243 | 243 | $category = trim(strip_tags($category)); |
| 244 | - if ( $data['datamanager']->get_schema('default')->has_field('categories') |
|
| 244 | + if ($data['datamanager']->get_schema('default')->has_field('categories') |
|
| 245 | 245 | && !$data['datamanager']->get_schema('default')->get_field('categories')['type_config']['allow_multiple']) { |
| 246 | 246 | $qb->add_constraint('extra1', '=', $category); |
| 247 | 247 | } else { |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | */ |
| 307 | 307 | private function _set_startend_from_month(int $year, int $month) |
| 308 | 308 | { |
| 309 | - if ( $month < 1 |
|
| 309 | + if ($month < 1 |
|
| 310 | 310 | || $month > 12) { |
| 311 | 311 | throw new midcom_error_notfound("The month {$month} is not valid."); |
| 312 | 312 | } |