Skip to content

Commit

Permalink
Merge pull request #369 from zba/2
Browse files Browse the repository at this point in the history
fix #368
  • Loading branch information
benedmunds committed Dec 17, 2012
2 parents e9332c6 + 4744b3c commit e90270b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/ion_auth_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ public function create_group($group_name = FALSE, $group_description = NULL)
}

// bail if the group name already exists
$existing_group = $this->db->get_where($this->tables['groups'], array('name' => $group_name))->num_row();
$existing_group = $this->db->get_where($this->tables['groups'], array('name' => $group_name))->num_rows();
if($existing_group !== 0)
{
$this->set_error('group_already_exists');
Expand Down

0 comments on commit e90270b

Please sign in to comment.