Skip to content

Commit

Permalink
Prevent warning error in template if no data found.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Dec 23, 2023
1 parent ae1cf9b commit 259a14b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/includes/easyparliament/hansardlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -3355,8 +3355,8 @@ public function _get_data_by_bill($args) {
'order' => 'hdate,hpos'
);
$sections = $this->_get_hansard_data($input);
$data['rows'] = array();
if (count($sections) > 0) {
$data['rows'] = array();
$num_sections = count($sections);
for ($n=0; $n<$num_sections; $n++) {
$sectionrow = $sections[$n];
Expand Down

0 comments on commit 259a14b

Please sign in to comment.