Skip to content

Commit 205380b

Browse files
lostlianlostlian
authored andcommitted
Set definition as not mandatory parameter for create_group
The $definition parameter was a required parameter and it is not like the documentation.
1 parent c176ebb commit 205380b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

application/libraries/Aauth.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,9 +1157,10 @@ function hash_password($pass, $userid) {
11571157
* Create group
11581158
* Creates a new group
11591159
* @param string $group_name New group name
1160+
* @param string $definition Description of the group
11601161
* @return int|bool Group id or FALSE on fail
11611162
*/
1162-
public function create_group($group_name, $definition) {
1163+
public function create_group($group_name, $definition = '') {
11631164

11641165
$query = $this->aauth_db->get_where($this->config_vars['groups'], array('name' => $group_name));
11651166

0 commit comments

Comments
 (0)