{"action":"created","issue":{"url":"https://api.github.com/repos/bozoh/moodle-mod_simplecertificate/issues/126","labels_url":"https://api.github.com/repos/bozoh/moodle-mod_simplecertificate/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/bozoh/moodle-mod_simplecertificate/issues/126/comments","events_url":"https://api.github.com/repos/bozoh/moodle-mod_simplecertificate/issues/126/events","html_url":"https://github.com/bozoh/moodle-mod_simplecertificate/issues/126","id":88961638,"number":126,"title":"Incorrect call to print_error","user":{"login":"NeillM","id":1038050,"avatar_url":"https://avatars.githubusercontent.com/u/1038050?v=3","gravatar_id":"","url":"https://api.github.com/users/NeillM","html_url":"https://github.com/NeillM","followers_url":"https://api.github.com/users/NeillM/followers","following_url":"https://api.github.com/users/NeillM/following{/other_user}","gists_url":"https://api.github.com/users/NeillM/gists{/gist_id}","starred_url":"https://api.github.com/users/NeillM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeillM/subscriptions","organizations_url":"https://api.github.com/users/NeillM/orgs","repos_url":"https://api.github.com/users/NeillM/repos","events_url":"https://api.github.com/users/NeillM/events{/privacy}","received_events_url":"https://api.github.com/users/NeillM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-17T09:04:06Z","updated_at":"2015-06-17T09:05:27Z","closed_at":null,"body":"In the add_instance method of the simple certificate class in locallib.php print_erro is used instead of print_error:\r\n\r\n```php\r\nif (!$this->instance = $DB->get_record('simplecertificate', array('id' => $returnid), '*', MUST_EXIST)) {\r\n     print_erro('certificatenot', 'simplecertificate');\r\n}\r\n```\r\nVersion: 2.2.1 for Moodle.2.7\r\n\r\nIt also seems to be present on the master branch"},"comment":{"url":"https://api.github.com/repos/bozoh/moodle-mod_simplecertificate/issues/comments/112729083","html_url":"https://github.com/bozoh/moodle-mod_simplecertificate/issues/126#issuecomment-112729083","issue_url":"https://api.github.com/repos/bozoh/moodle-mod_simplecertificate/issues/126","id":112729083,"user":{"login":"NeillM","id":1038050,"avatar_url":"https://avatars.githubusercontent.com/u/1038050?v=3","gravatar_id":"","url":"https://api.github.com/users/NeillM","html_url":"https://github.com/NeillM","followers_url":"https://api.github.com/users/NeillM/followers","following_url":"https://api.github.com/users/NeillM/following{/other_user}","gists_url":"https://api.github.com/users/NeillM/gists{/gist_id}","starred_url":"https://api.github.com/users/NeillM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeillM/subscriptions","organizations_url":"https://api.github.com/users/NeillM/orgs","repos_url":"https://api.github.com/users/NeillM/repos","events_url":"https://api.github.com/users/NeillM/events{/privacy}","received_events_url":"https://api.github.com/users/NeillM/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T09:05:27Z","updated_at":"2015-06-17T09:05:27Z","body":"Also found a similar issue in the update_instance method."}}