Zeile 788 | Zeile 788 |
---|
$fields_array = $db->show_fields_from("forumpermissions"); foreach($fields_array as $field) {
|
$fields_array = $db->show_fields_from("forumpermissions"); foreach($fields_array as $field) {
|
if(!in_array($field['field'], $hidefields) && (strpos($field['Field'], 'can') !== false || strpos($field['Field'], 'mod') !== false))
| if(!in_array($field['Field'], $hidefields) && (strpos($field['Field'], 'can') !== false || strpos($field['Field'], 'mod') !== false))
|
{ if(array_key_exists($field['Field'], $groups)) {
| { if(array_key_exists($field['Field'], $groups)) {
|
Zeile 1199 | Zeile 1199 |
---|
foreach($usergroups as $usergroup) { $perms = array();
|
foreach($usergroups as $usergroup) { $perms = array();
|
if(isset($mybb->input['default_permissions']) && $mybb->input['default_permissions'][$usergroup['gid']])
| if(!empty($mybb->input['default_permissions'][$usergroup['gid']]))
|
{ if(isset($existing_permissions) && is_array($existing_permissions) && $existing_permissions[$usergroup['gid']]) {
| { if(isset($existing_permissions) && is_array($existing_permissions) && $existing_permissions[$usergroup['gid']]) {
|
Zeile 1228 | Zeile 1228 |
---|
{ if(isset($mybb->input['permissions'])) {
|
{ if(isset($mybb->input['permissions'])) {
|
if($mybb->input['default_permissions'][$usergroup['gid']])
| if(!empty($mybb->input['default_permissions'][$usergroup['gid']]))
|
{ $default_checked = true; }
| { $default_checked = true; }
|
Zeile 1922 | Zeile 1922 |
---|
$mod = $db->fetch_array($query);
// Does the forum not exist?
|
$mod = $db->fetch_array($query);
// Does the forum not exist?
|
if(!$mod['mid'])
| if(!$mod)
|
{ flash_message($lang->error_invalid_moderator, 'error'); admin_redirect("index.php?module=forum-management&fid={$fid}");
| { flash_message($lang->error_invalid_moderator, 'error'); admin_redirect("index.php?module=forum-management&fid={$fid}");
|
Zeile 1992 | Zeile 1992 |
---|
$forum = $db->fetch_array($query);
// Does the forum not exist?
|
$forum = $db->fetch_array($query);
// Does the forum not exist?
|
if(!$forum['fid'])
| if(!$forum)
|
{ flash_message($lang->error_invalid_forum, 'error'); admin_redirect("index.php?module=forum-management");
| { flash_message($lang->error_invalid_forum, 'error'); admin_redirect("index.php?module=forum-management");
|