Permalink
Browse files

fix(views): don't pass null to array arguments (for PHP 7)

Fixes #9318
  • Loading branch information...
mrclay committed Jan 26, 2016
1 parent 893226b commit e0d5433fd69875e5e9fd8ca823f74e8b7715c5f8
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/groups/views/default/groups/edit/tools.php
  2. +1 −1 views/default/input/date.php
@@ -16,7 +16,7 @@
$group_option_toggle_name = $group_option->name . "_enable";
$value = elgg_extract($group_option_toggle_name, $vars);
echo elgg_format_element('div', null, elgg_view('input/checkbox', array(
echo elgg_format_element('div', [], elgg_view('input/checkbox', array(
'name' => $group_option_toggle_name,
'value' => 'yes',
'default' => 'no',
@@ -51,5 +51,5 @@
echo elgg_format_element('input', $vars);
if (elgg_is_xhr()) {
echo elgg_format_element('script', null, 'elgg.ui.initDatePicker();');
echo elgg_format_element('script', [], 'elgg.ui.initDatePicker();');
}

0 comments on commit e0d5433

Please sign in to comment.