Revision 23
Added by stefan about 19 years ago
add.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
// $Id: add.php,v 1.4 2005/06/22 06:20:21 rdjurovich Exp $
|
|
3 |
// $Id$ |
|
4 | 4 |
|
5 | 5 |
/* |
6 | 6 |
|
... | ... | |
41 | 41 |
if($group_name == "") { |
42 | 42 |
$admin->print_error($MESSAGE['GROUPS']['GROUP_NAME_BLANK'], $js_back); |
43 | 43 |
} |
44 |
$results = $database->query("SELECT * FROM ".TABLE_PREFIX."groups WHERE name = '$group_name'"); |
|
45 |
if($results->numRows()>0) { |
|
46 |
$admin->print_error($MESSAGE['GROUPS']['GROUP_NAME_EXISTS'], $js_back); |
|
47 |
} |
|
44 | 48 |
|
45 | 49 |
// Get system and module permissions |
46 | 50 |
require(ADMIN_PATH.'/groups/get_permissions.php'); |
Also available in: Unified diff
Fixed bug where group with existing name can be added.