{"action":"opened","issue":{"url":"https://api.github.com/repos/Exadra37/cashondelivery/issues/9","labels_url":"https://api.github.com/repos/Exadra37/cashondelivery/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Exadra37/cashondelivery/issues/9/comments","events_url":"https://api.github.com/repos/Exadra37/cashondelivery/issues/9/events","html_url":"https://github.com/Exadra37/cashondelivery/issues/9","id":67691838,"number":9,"title":"Possible bug with $_POST['minimo'] in method _displayForm()","user":{"login":"Exadra37","id":1745456,"avatar_url":"https://avatars.githubusercontent.com/u/1745456?v=3","gravatar_id":"","url":"https://api.github.com/users/Exadra37","html_url":"https://github.com/Exadra37","followers_url":"https://api.github.com/users/Exadra37/followers","following_url":"https://api.github.com/users/Exadra37/following{/other_user}","gists_url":"https://api.github.com/users/Exadra37/gists{/gist_id}","starred_url":"https://api.github.com/users/Exadra37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exadra37/subscriptions","organizations_url":"https://api.github.com/users/Exadra37/orgs","repos_url":"https://api.github.com/users/Exadra37/repos","events_url":"https://api.github.com/users/Exadra37/events{/privacy}","received_events_url":"https://api.github.com/users/Exadra37/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Exadra37/cashondelivery/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Exadra37/cashondelivery/labels/critical","name":"critical","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"Exadra37","id":1745456,"avatar_url":"https://avatars.githubusercontent.com/u/1745456?v=3","gravatar_id":"","url":"https://api.github.com/users/Exadra37","html_url":"https://github.com/Exadra37","followers_url":"https://api.github.com/users/Exadra37/followers","following_url":"https://api.github.com/users/Exadra37/following{/other_user}","gists_url":"https://api.github.com/users/Exadra37/gists{/gist_id}","starred_url":"https://api.github.com/users/Exadra37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exadra37/subscriptions","organizations_url":"https://api.github.com/users/Exadra37/orgs","repos_url":"https://api.github.com/users/Exadra37/repos","events_url":"https://api.github.com/users/Exadra37/events{/privacy}","received_events_url":"https://api.github.com/users/Exadra37/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-04-10T21:57:14Z","updated_at":"2015-04-10T21:57:14Z","closed_at":null,"body":"I really do not understand how we retrieve a non bolean value from `$valor   = str_replace(\",\", \".\", $_POST[\"minimo\"]);`, process this value and then we will decided if we use the retrieved value only `if ($_POST[\"minimo\"] == true)` ???\r\n\r\nThis will never work as expected and also the check against a boolean value must be done using `===` instead of just `==`\r\n\r\nAffect code in https://github.com/Exadra37/cashondelivery/blob/1.0.0.0-exadra37.com/cashondelivery.php#L621-L635"}}