Skip to content

Commit

Permalink
Merge pull request #52 from atomiix/php8
Browse files Browse the repository at this point in the history
Fix PHP 8 compatibility
  • Loading branch information
atomiix authored Jun 30, 2021
2 parents 1265de0 + b9aaae7 commit ad40fe2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ps_menutoplinks.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
class Ps_MenuTopLinks
{
public static function gets($id_lang, $id_linksmenutop = null, $id_shop)
public static function gets($id_lang, $id_linksmenutop = null, $id_shop = 0)
{
$sql = 'SELECT l.id_linksmenutop, l.new_window, s.name, ll.link, ll.label
FROM ' . _DB_PREFIX_ . 'linksmenutop l
Expand Down Expand Up @@ -66,7 +66,7 @@ public static function getLinkLang($id_linksmenutop, $id_shop)
return ['link' => $link, 'label' => $label, 'new_window' => $new_window];
}

public static function add($link, $label, $newWindow = 0, $id_shop)
public static function add($link, $label, $newWindow = 0, $id_shop = 0)
{
if (!is_array($label)) {
return false;
Expand Down Expand Up @@ -102,7 +102,7 @@ public static function add($link, $label, $newWindow = 0, $id_shop)
return $result;
}

public static function update($link, $labels, $newWindow = 0, $id_shop, $id_link)
public static function update($link, $labels, $newWindow = 0, $id_shop = 0, $id_link = 0)
{
if (!is_array($labels)) {
return false;
Expand Down

0 comments on commit ad40fe2

Please sign in to comment.