{"action":"created","issue":{"url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5522","repository_url":"https://api.github.com/repos/roundcube/roundcubemail","labels_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5522/labels{/name}","comments_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5522/comments","events_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5522/events","html_url":"https://github.com/roundcube/roundcubemail/issues/5522","id":189823651,"number":5522,"title":"PHP Warning: array_intersect_key(): Argument #1 is not an array in program/steps/addressbook/save.inc","user":{"login":"sblaisot","id":2768193,"avatar_url":"https://avatars.githubusercontent.com/u/2768193?v=3","gravatar_id":"","url":"https://api.github.com/users/sblaisot","html_url":"https://github.com/sblaisot","followers_url":"https://api.github.com/users/sblaisot/followers","following_url":"https://api.github.com/users/sblaisot/following{/other_user}","gists_url":"https://api.github.com/users/sblaisot/gists{/gist_id}","starred_url":"https://api.github.com/users/sblaisot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sblaisot/subscriptions","organizations_url":"https://api.github.com/users/sblaisot/orgs","repos_url":"https://api.github.com/users/sblaisot/repos","events_url":"https://api.github.com/users/sblaisot/events{/privacy}","received_events_url":"https://api.github.com/users/sblaisot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-16T19:51:40Z","updated_at":"2016-11-17T10:32:34Z","closed_at":null,"body":"Hi,\r\n\r\nSome user of automatic_addressbook plugin report the following message in his error log:\r\n\r\n`PHP Warning: array_intersect_key(): Argument #1 is not an array in /usr/share/roundcube/program/steps/addressbook/save.inc on line 178`\r\n\r\nhttps://github.com/sblaisot/automatic_addressbook/issues/11\r\n\r\nI suspect a bug in save.inc but maybe there is also a bug in automatic_addressbook.\r\n\r\nany hint ?"},"comment":{"url":"https://api.github.com/repos/roundcube/roundcubemail/issues/comments/261212148","html_url":"https://github.com/roundcube/roundcubemail/issues/5522#issuecomment-261212148","issue_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5522","id":261212148,"user":{"login":"sblaisot","id":2768193,"avatar_url":"https://avatars.githubusercontent.com/u/2768193?v=3","gravatar_id":"","url":"https://api.github.com/users/sblaisot","html_url":"https://github.com/sblaisot","followers_url":"https://api.github.com/users/sblaisot/followers","following_url":"https://api.github.com/users/sblaisot/following{/other_user}","gists_url":"https://api.github.com/users/sblaisot/gists{/gist_id}","starred_url":"https://api.github.com/users/sblaisot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sblaisot/subscriptions","organizations_url":"https://api.github.com/users/sblaisot/orgs","repos_url":"https://api.github.com/users/sblaisot/repos","events_url":"https://api.github.com/users/sblaisot/events{/privacy}","received_events_url":"https://api.github.com/users/sblaisot/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T10:32:34Z","updated_at":"2016-11-17T10:32:34Z","body":"If get_record() doesn't return an array, can't you just stop refreshing the view ?\r\nI mean, if(is_array($CONTACT_RECORD)) lines 170-187 ?\r\n\r\njust to handle the case where a plugin removed the contact from that addressbook on update."}}
{"actor":{"display_login":"sblaisot"}}