{"action":"created","issue":{"url":"https://api.github.com/repos/DoSomething/phoenix/issues/6464","repository_url":"https://api.github.com/repos/DoSomething/phoenix","labels_url":"https://api.github.com/repos/DoSomething/phoenix/issues/6464/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/phoenix/issues/6464/comments","events_url":"https://api.github.com/repos/DoSomething/phoenix/issues/6464/events","html_url":"https://github.com/DoSomething/phoenix/issues/6464","id":155571473,"number":6464,"title":"Warnings when pulling staging database.","user":{"login":"DFurnes","id":583202,"avatar_url":"https://avatars.githubusercontent.com/u/583202?v=3","gravatar_id":"","url":"https://api.github.com/users/DFurnes","html_url":"https://github.com/DFurnes","followers_url":"https://api.github.com/users/DFurnes/followers","following_url":"https://api.github.com/users/DFurnes/following{/other_user}","gists_url":"https://api.github.com/users/DFurnes/gists{/gist_id}","starred_url":"https://api.github.com/users/DFurnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFurnes/subscriptions","organizations_url":"https://api.github.com/users/DFurnes/orgs","repos_url":"https://api.github.com/users/DFurnes/repos","events_url":"https://api.github.com/users/DFurnes/events{/privacy}","received_events_url":"https://api.github.com/users/DFurnes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DoSomething/phoenix/labels/refactor","name":"refactor","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-18T18:34:22Z","updated_at":"2016-05-18T18:36:15Z","closed_at":"2016-05-18T18:36:15Z","body":"_BUG_\r\n-------------------\r\n#### Current Behavior\r\nA warning occurs when pulling the staging database, because one of the preprocess functions uses `$country_code` for the first parameter of `array_key_exists()` and it's null. 😞\r\n\r\n#### Desired Behavior\r\nThere should be no warnings.\r\n\r\n#### Steps to Replicate\r\nPull the staging database using `ds pull --stage`. You'll see a whole bunch of warnings like this:\r\n```\r\narray_key_exists() expects parameter 2 to be array, null given preprocess_node.inc:80                                                                                                [warning]\r\narray_key_exists() expects parameter 2 to be array, null given preprocess_node.inc:80                                                                                                [warning]\r\narray_key_exists() expects parameter 2 to be array, null given preprocess_node.inc:80                                                                                                [warning]\r\narray_key_exists() expects parameter 2 to be array, null given preprocess_node.inc:80                                                                                                [warning]\r\narray_key_exists() expects parameter 2 to be array, null given preprocess_node.inc:80                                                                                                [warning]\r\narray_key_exists() expects parameter 2 to be array, null given preprocess_node.inc:80                                                                                                [warning]\r\narray_key_exists() expects parameter 2 to be array, null given preprocess_node.inc:80                                                                                                [warning]\r\narray_key_exists() expects parameter 2 to be array, null given preprocess_node.inc:80                                                                                                [warning]\r\narray_key_exists() expects parameter 2 to be array, null given preprocess_node.inc:80                                                                                                [warning]\r\narray_key_exists() expects parameter 2 to be array, null given preprocess_node.inc:80                                                                                                [warning]\r\narray_key_exists() expects parameter 2 to be array, null given preprocess_node.inc:80                                                                                                [warning]\r\narray_key_exists() expects parameter 2 to be array, null given preprocess_node.inc:80                                                                                                [warning]\r\n```\r\n\r\n#### Why This Matters\r\n💩"},"comment":{"url":"https://api.github.com/repos/DoSomething/phoenix/issues/comments/220118703","html_url":"https://github.com/DoSomething/phoenix/issues/6464#issuecomment-220118703","issue_url":"https://api.github.com/repos/DoSomething/phoenix/issues/6464","id":220118703,"user":{"login":"angaither","id":645205,"avatar_url":"https://avatars.githubusercontent.com/u/645205?v=3","gravatar_id":"","url":"https://api.github.com/users/angaither","html_url":"https://github.com/angaither","followers_url":"https://api.github.com/users/angaither/followers","following_url":"https://api.github.com/users/angaither/following{/other_user}","gists_url":"https://api.github.com/users/angaither/gists{/gist_id}","starred_url":"https://api.github.com/users/angaither/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angaither/subscriptions","organizations_url":"https://api.github.com/users/angaither/orgs","repos_url":"https://api.github.com/users/angaither/repos","events_url":"https://api.github.com/users/angaither/events{/privacy}","received_events_url":"https://api.github.com/users/angaither/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T18:36:15Z","updated_at":"2016-05-18T18:36:15Z","body":"🌚  #6312"}}