@@ -131,8 +131,8 @@ discard block |
||
131 | 131 | $year_data = []; |
132 | 132 | $first_post = $this->_compute_welcome_first_post(); |
133 | 133 | $this->_request_data['first_post'] = $first_post; |
134 | - $this->_request_data['total_count'] =& $total_count; |
|
135 | - $this->_request_data['year_data'] =& $year_data; |
|
134 | + $this->_request_data['total_count'] = & $total_count; |
|
135 | + $this->_request_data['year_data'] = & $year_data; |
|
136 | 136 | if (!$first_post) { |
137 | 137 | return; |
138 | 138 | } |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | switch ($handler_id) { |
262 | 262 | case 'archive-year-category': |
263 | 263 | $category = trim(strip_tags($args[1])); |
264 | - if ( $data['datamanager']->get_schema('default')->has_field('categories') |
|
264 | + if ($data['datamanager']->get_schema('default')->has_field('categories') |
|
265 | 265 | && !$data['datamanager']->get_schema('default')->get_field('categories')['type_config']['allow_multiple']) { |
266 | 266 | $qb->add_constraint('extra1', '=', $category); |
267 | 267 | } else { |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | throw new midcom_error_notfound("The year '{$year}' is not valid."); |
346 | 346 | } |
347 | 347 | |
348 | - if ( $month < 1 |
|
348 | + if ($month < 1 |
|
349 | 349 | || $month > 12) { |
350 | 350 | throw new midcom_error_notfound("The month {$month} is not valid."); |
351 | 351 | } |