{"action":"created","issue":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/2979","labels_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/2979/labels{/name}","comments_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/2979/comments","events_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/2979/events","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/2979","id":54827004,"number":2979,"title":"Undefined index notice on API / stats call with filter","user":{"login":"barrykooij","id":2846594,"avatar_url":"https://avatars.githubusercontent.com/u/2846594?v=3","gravatar_id":"","url":"https://api.github.com/users/barrykooij","html_url":"https://github.com/barrykooij","followers_url":"https://api.github.com/users/barrykooij/followers","following_url":"https://api.github.com/users/barrykooij/following{/other_user}","gists_url":"https://api.github.com/users/barrykooij/gists{/gist_id}","starred_url":"https://api.github.com/users/barrykooij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barrykooij/subscriptions","organizations_url":"https://api.github.com/users/barrykooij/orgs","repos_url":"https://api.github.com/users/barrykooij/repos","events_url":"https://api.github.com/users/barrykooij/events{/privacy}","received_events_url":"https://api.github.com/users/barrykooij/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/labels/API","name":"API","color":"8E44AD"},{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/milestones/81","labels_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/milestones/81/labels","id":824150,"number":81,"title":"2.3","description":null,"creator":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"open_issues":52,"closed_issues":21,"state":"open","created_at":"2014-10-13T16:09:32Z","updated_at":"2015-02-12T22:35:27Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-01-19T23:53:27Z","updated_at":"2015-02-13T13:17:27Z","closed_at":null,"body":"**API URL:**\r\n/edd-api/stats/?key=x&token=y&type=earnings&date=range&startdate=20150101&enddate=20150131\r\n\r\n**Notice:**\r\nBacktrace from warning 'Undefined index: earnings' at x/wp-content/plugins/easy-digital-downloads/includes/class-edd-api.php 1013:\r\n\r\n**Backtrace**\r\nx/wp-content/plugins/easy-digital-downloads/includes/class-edd-api.php 336 calling get_stats()\r\ncalling process_query()\r\nx/wp-includes/plugin.php 496 calling call_user_func_array()\r\nx/wp-includes/template-loader.php 12 calling do_action()\r\nx/wp-blog-header.php 16 calling require_once()\r\nx/index.php 17 calling require()"},"comment":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/comments/74251781","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/2979#issuecomment-74251781","issue_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/2979","id":74251781,"user":{"login":"chriscct7","id":1324637,"avatar_url":"https://avatars.githubusercontent.com/u/1324637?v=3","gravatar_id":"","url":"https://api.github.com/users/chriscct7","html_url":"https://github.com/chriscct7","followers_url":"https://api.github.com/users/chriscct7/followers","following_url":"https://api.github.com/users/chriscct7/following{/other_user}","gists_url":"https://api.github.com/users/chriscct7/gists{/gist_id}","starred_url":"https://api.github.com/users/chriscct7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriscct7/subscriptions","organizations_url":"https://api.github.com/users/chriscct7/orgs","repos_url":"https://api.github.com/users/chriscct7/repos","events_url":"https://api.github.com/users/chriscct7/events{/privacy}","received_events_url":"https://api.github.com/users/chriscct7/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T13:17:27Z","updated_at":"2015-02-13T13:17:27Z","body":"The same situation also needs the same fix here: https://github.com/easydigitaldownloads/Easy-Digital-Downloads/blob/master/includes/class-edd-api.php#L913"}}