{"action":"created","issue":{"url":"https://api.github.com/repos/woothemes/woosidebars/issues/39","labels_url":"https://api.github.com/repos/woothemes/woosidebars/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woosidebars/issues/39/comments","events_url":"https://api.github.com/repos/woothemes/woosidebars/issues/39/events","html_url":"https://github.com/woothemes/woosidebars/pull/39","id":65784226,"number":39,"title":"#38 Fix Notice Undefined index : templates in Conditions","user":{"login":"vincsb","id":8859537,"avatar_url":"https://avatars.githubusercontent.com/u/8859537?v=3","gravatar_id":"","url":"https://api.github.com/users/vincsb","html_url":"https://github.com/vincsb","followers_url":"https://api.github.com/users/vincsb/followers","following_url":"https://api.github.com/users/vincsb/following{/other_user}","gists_url":"https://api.github.com/users/vincsb/gists{/gist_id}","starred_url":"https://api.github.com/users/vincsb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincsb/subscriptions","organizations_url":"https://api.github.com/users/vincsb/orgs","repos_url":"https://api.github.com/users/vincsb/repos","events_url":"https://api.github.com/users/vincsb/events{/privacy}","received_events_url":"https://api.github.com/users/vincsb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/woothemes/woosidebars/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"mattyza","id":880803,"avatar_url":"https://avatars.githubusercontent.com/u/880803?v=3","gravatar_id":"","url":"https://api.github.com/users/mattyza","html_url":"https://github.com/mattyza","followers_url":"https://api.github.com/users/mattyza/followers","following_url":"https://api.github.com/users/mattyza/following{/other_user}","gists_url":"https://api.github.com/users/mattyza/gists{/gist_id}","starred_url":"https://api.github.com/users/mattyza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattyza/subscriptions","organizations_url":"https://api.github.com/users/mattyza/orgs","repos_url":"https://api.github.com/users/mattyza/repos","events_url":"https://api.github.com/users/mattyza/events{/privacy}","received_events_url":"https://api.github.com/users/mattyza/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-04-01T21:37:35Z","updated_at":"2015-09-22T08:59:18Z","closed_at":"2015-09-22T08:13:51Z","pull_request":{"url":"https://api.github.com/repos/woothemes/woosidebars/pulls/39","html_url":"https://github.com/woothemes/woosidebars/pull/39","diff_url":"https://github.com/woothemes/woosidebars/pull/39.diff","patch_url":"https://github.com/woothemes/woosidebars/pull/39.patch"},"body":"I resolve the issue #38 which i can reproduce in four steps : \r\n1. Install latest Wordpress version\r\n2. Activate a theme with no page template (example : twentyfifteen)\r\n3. Download and activate Woosidebars\r\n4. Go to Apparence > Widgets Areas > Add new\r\n\r\nYou can find a PHP notice in the conditions metabox : \"Notice: Undefined index: templates in /.../wp-content/plugins/woosidebars/classes/class-woo-conditions.php on line 582\"\r\n\r\nIt's because an empty array with 'templates' key is create before check if there is templates page in the theme. I just move this declaration, it's a minor change.\r\n\r\nI test my change with a template page, no error.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/woothemes/woosidebars/issues/comments/142218711","html_url":"https://github.com/woothemes/woosidebars/pull/39#issuecomment-142218711","issue_url":"https://api.github.com/repos/woothemes/woosidebars/issues/39","id":142218711,"user":{"login":"vburlak","id":1781636,"avatar_url":"https://avatars.githubusercontent.com/u/1781636?v=3","gravatar_id":"","url":"https://api.github.com/users/vburlak","html_url":"https://github.com/vburlak","followers_url":"https://api.github.com/users/vburlak/followers","following_url":"https://api.github.com/users/vburlak/following{/other_user}","gists_url":"https://api.github.com/users/vburlak/gists{/gist_id}","starred_url":"https://api.github.com/users/vburlak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vburlak/subscriptions","organizations_url":"https://api.github.com/users/vburlak/orgs","repos_url":"https://api.github.com/users/vburlak/repos","events_url":"https://api.github.com/users/vburlak/events{/privacy}","received_events_url":"https://api.github.com/users/vburlak/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T08:59:18Z","updated_at":"2015-09-22T08:59:18Z","body":"@mattyza thx a lot"}}