Skip to content

Commit

Permalink
Minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
JonesAndrew committed Mar 22, 2017
1 parent 65111f5 commit a28b3c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Observer/PrivateApiKeyObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
{
$field = $observer->getEvent()['config_data']->getData();

if ($field['field'] !== 'private_api_key') return;
if (!array_key_exists('field', $field) || $field['field'] !== 'private_api_key') return;

$api_key = $field['value'];
if (!$api_key) return;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "klaviyo/magento2-extension",
"description": "Klaviyo extension for Magento 2. Allows pushing newsletters to Klaviyo's platform and more.",
"type": "magento2-module",
"version": "1.0.0",
"version": "1.0.1",
"autoload": {
"files": [
"registration.php"
Expand Down

0 comments on commit a28b3c4

Please sign in to comment.