{"action":"created","issue":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3736","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3736/labels{/name}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3736/comments","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3736/events","html_url":"https://github.com/bcit-ci/CodeIgniter/issues/3736","id":66425152,"number":3736,"title":"$this->form_validation->set_rules with empty rule will fail","user":{"login":"m4ikel","id":760888,"avatar_url":"https://avatars.githubusercontent.com/u/760888?v=3","gravatar_id":"","url":"https://api.github.com/users/m4ikel","html_url":"https://github.com/m4ikel","followers_url":"https://api.github.com/users/m4ikel/followers","following_url":"https://api.github.com/users/m4ikel/following{/other_user}","gists_url":"https://api.github.com/users/m4ikel/gists{/gist_id}","starred_url":"https://api.github.com/users/m4ikel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m4ikel/subscriptions","organizations_url":"https://api.github.com/users/m4ikel/orgs","repos_url":"https://api.github.com/users/m4ikel/repos","events_url":"https://api.github.com/users/m4ikel/events{/privacy}","received_events_url":"https://api.github.com/users/m4ikel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-05T10:25:16Z","updated_at":"2015-07-31T17:43:33Z","closed_at":"2015-04-06T21:10:45Z","body":"Using $this->form_validation->set_rules('username', 'Username', array()); will validate.\r\n$this->form_validation->set_rules('username', 'Username', ''); will fail.\r\n\r\nWith codeigniter 2.x this worked without issue:\r\n\r\nI added hotfix to overcome this issue.\r\n\r\nif(!empty($rules))\r\n{\r\n\t$rules = explode('|', $rules);\r\n}\r\nelse\r\n{\r\n\t$rules = array();\r\n}"},"comment":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/comments/126767671","html_url":"https://github.com/bcit-ci/CodeIgniter/issues/3736#issuecomment-126767671","issue_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3736","id":126767671,"user":{"login":"evertramos","id":905951,"avatar_url":"https://avatars.githubusercontent.com/u/905951?v=3","gravatar_id":"","url":"https://api.github.com/users/evertramos","html_url":"https://github.com/evertramos","followers_url":"https://api.github.com/users/evertramos/followers","following_url":"https://api.github.com/users/evertramos/following{/other_user}","gists_url":"https://api.github.com/users/evertramos/gists{/gist_id}","starred_url":"https://api.github.com/users/evertramos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evertramos/subscriptions","organizations_url":"https://api.github.com/users/evertramos/orgs","repos_url":"https://api.github.com/users/evertramos/repos","events_url":"https://api.github.com/users/evertramos/events{/privacy}","received_events_url":"https://api.github.com/users/evertramos/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T17:43:33Z","updated_at":"2015-07-31T17:43:33Z","body":"@narfbg Sorry man... I was not sure how to proceed, but this is not unrelated. Actually I saw that you close de issue, but I had the same problem, Just would like to confirm and make it clear for future reference. Sorry for that."}}