Skip to content

Commit b606a87

Browse files
Merge pull request PrestaShop#81 from atomiix/php8
Fix php8 compatibility
2 parents 2bbcae5 + f1abc02 commit b606a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ps_emailsubscription.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public function renderList()
341341
return $helper_list->generateList($subscribers, $fields_list);
342342
}
343343

344-
public function displayViewCustomerLink($token = null, $id, $name = null)
344+
public function displayViewCustomerLink($token = null, $id = null, $name = null)
345345
{
346346
$this->smarty->assign([
347347
'href' => 'index.php?controller=AdminCustomers&id_customer=' . (int) $id . '&updatecustomer&token=' . Tools::getAdminTokenLite('AdminCustomers'),
@@ -363,7 +363,7 @@ public function displayEnableLink($token, $id, $value, $active, $id_category = n
363363
return $this->display(__FILE__, 'views/templates/admin/list_action_enable.tpl');
364364
}
365365

366-
public function displayUnsubscribeLink($token = null, $id, $name = null)
366+
public function displayUnsubscribeLink($token = null, $id = null, $name = null)
367367
{
368368
$this->smarty->assign([
369369
'href' => $this->_helperlist->currentIndex . '&subscribedcustomer&' . $this->_helperlist->identifier . '=' . $id . '&token=' . $token,

0 commit comments

Comments
 (0)