Browse files

there is no column name in table "users". change ->set('group', '100'…

…) to ->set('group_id', '100')


very helpful for beginners, thanks.
  • Loading branch information...
1 parent 3a4388f commit 07156aa30a108fe3d91bf3826a631eb420dccf8d @panega panega committed Sep 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 models/ag_auth_model.php
View
2 models/ag_auth_model.php
@@ -40,7 +40,7 @@ public function login_check($username, $field_type)
public function register($username, $password, $email)
{
- if($this->db->set('username', $username)->set('password', $password)->set('email', $email)->set('group', '100')->insert($this->user_table))
+ if($this->db->set('username', $username)->set('password', $password)->set('email', $email)->set('group_id', '100')->insert($this->user_table))
{
return TRUE;
}

0 comments on commit 07156aa

Please sign in to comment.