{"action":"opened","issue":{"url":"https://api.github.com/repos/ebizmarts/magento2-magemonkey/issues/54","repository_url":"https://api.github.com/repos/ebizmarts/magento2-magemonkey","labels_url":"https://api.github.com/repos/ebizmarts/magento2-magemonkey/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/ebizmarts/magento2-magemonkey/issues/54/comments","events_url":"https://api.github.com/repos/ebizmarts/magento2-magemonkey/issues/54/events","html_url":"https://github.com/ebizmarts/magento2-magemonkey/issues/54","id":249395619,"number":54,"title":"array_merge warning on subscribe to newsletter action","user":{"login":"sergeynezbritskiy","id":8030069,"avatar_url":"https://avatars3.githubusercontent.com/u/8030069?v=4","gravatar_id":"","url":"https://api.github.com/users/sergeynezbritskiy","html_url":"https://github.com/sergeynezbritskiy","followers_url":"https://api.github.com/users/sergeynezbritskiy/followers","following_url":"https://api.github.com/users/sergeynezbritskiy/following{/other_user}","gists_url":"https://api.github.com/users/sergeynezbritskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeynezbritskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeynezbritskiy/subscriptions","organizations_url":"https://api.github.com/users/sergeynezbritskiy/orgs","repos_url":"https://api.github.com/users/sergeynezbritskiy/repos","events_url":"https://api.github.com/users/sergeynezbritskiy/events{/privacy}","received_events_url":"https://api.github.com/users/sergeynezbritskiy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-10T15:57:42Z","updated_at":"2017-08-10T15:57:42Z","closed_at":null,"body":"Hi! Thank you for your great plugin\r\n\r\nWhen I try to subscribe customer to newsletter I get next warning\r\nWarning: array_merge(): Argument #2 is not an array in {}vendor\\ebizmarts\\magento2-magemonkey\\Helper\\Data.php on line 116\r\n\r\nthis was caused by very stupid map http://prntscr.com/g6v2c0, but when I looked for the reason, I found that your method \\Ebizmarts\\MageMonkey\\Helper\\Data::_getMergeVarsValue returns arrray only if both keys in the map are not empty (line 181). I think this was done exidentally and you guys can easily fix it by moving return statement outside the IF.\r\n\r\nThanks"}}
{"actor":{"display_login":"sergeynezbritskiy"}}