Skip to content

Commit

Permalink
Update QuickAccess.php
Browse files Browse the repository at this point in the history
Fix PHP 7.4
  • Loading branch information
wdammak committed Sep 29, 2020
1 parent 3e3dc9f commit 4db16e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/QuickAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static function getQuickAccesses($id_lang)

public function toggleNewWindow()
{
if (!array_key_exists('new_window', $this)) {
if (!array_key_exists('new_window', get_object_vars($this))) {
throw new PrestaShopException('property "new_window" is missing in object '.get_class($this));
}

Expand Down

0 comments on commit 4db16e6

Please sign in to comment.