Skip to content

Commit 696e491

Browse files
committed
Fix code for PHP <8.4
1 parent f82dd19 commit 696e491

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

program/actions/settings/folder_edit.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,14 @@ public static function folder_form($attrib)
157157
'value' => $select->show($selected),
158158
];
159159

160-
$up = new html_button(['id' => 'move-folder-up', 'class' => 'move-folder-up'])->show($rcmail->gettext('reorder_folder_up'));
161-
$down = new html_button(['id' => 'move-folder-down', 'class' => 'move-folder-down'])->show($rcmail->gettext('reorder_folder_down'));
160+
$upBtn = new html_button(['id' => 'move-folder-up', 'class' => 'move-folder-up']);
161+
$downBtn = new html_button(['id' => 'move-folder-down', 'class' => 'move-folder-down']);
162162
$form['props']['fieldsets']['location']['content']['order'] = [
163163
'label' => $rcmail->gettext('reorder_folder'),
164-
'value' => html::div([], [$up, $down]),
164+
'value' => html::div([], [
165+
$upBtn->show($rcmail->gettext('reorder_folder_up')),
166+
$downBtn->show($rcmail->gettext('reorder_folder_down')),
167+
]),
165168
];
166169
}
167170

0 commit comments

Comments
 (0)