From 4744b3c0db3aa8e31aa2a70a39c0f7a9256dce31 Mon Sep 17 00:00:00 2001 From: alexey zbinyakov Date: Mon, 17 Dec 2012 08:02:29 +0300 Subject: [PATCH] fix #368 --- models/ion_auth_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/ion_auth_model.php b/models/ion_auth_model.php index ba4d4b5b4..e8fb23093 100644 --- a/models/ion_auth_model.php +++ b/models/ion_auth_model.php @@ -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');