Skip to content
Snippets Groups Projects
Commit 39779c0a authored by xamgore's avatar xamgore
Browse files

Improved the call of a deprecated function

parent e5266d81
Branches
Tags
No related merge requests found
...@@ -13,7 +13,7 @@ class Controller_Handler_Sign extends Controller_Handler { ...@@ -13,7 +13,7 @@ class Controller_Handler_Sign extends Controller_Handler {
$checklogin = true; $response['success'] = false; $checklogin = true; $response['success'] = false;
if(!$this->post->check()) if(!$this->post->check())
{ {
$this->post = Validation::factory($this->post->as_array()); $this->post = Validation::factory($this->post->data());
$this->post->rule('login', 'alpha_dash')->rule('login', 'not_empty'); $this->post->rule('login', 'alpha_dash')->rule('login', 'not_empty');
if(!$this->post->check()) if(!$this->post->check())
{ {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment