Zeile 118 | Zeile 118 |
---|
$group = $db->fetch_array($query);
// Does the setting not exist?
|
$group = $db->fetch_array($query);
// Does the setting not exist?
|
if(!$group['gid'])
| if(!$group)
|
{ flash_message($lang->error_invalid_gid2, 'error'); admin_redirect("index.php?module=config-settings&action=manage");
| { flash_message($lang->error_invalid_gid2, 'error'); admin_redirect("index.php?module=config-settings&action=manage");
|
Zeile 220 | Zeile 220 |
---|
$group = $db->fetch_array($query);
// Does the setting group not exist?
|
$group = $db->fetch_array($query);
// Does the setting group not exist?
|
if(!$group['gid'])
| if(!$group)
|
{ flash_message($lang->error_invalid_gid2, 'error'); admin_redirect("index.php?module=config-settings&action=manage");
| { flash_message($lang->error_invalid_gid2, 'error'); admin_redirect("index.php?module=config-settings&action=manage");
|
Zeile 454 | Zeile 454 |
---|
$setting = $db->fetch_array($query);
// Does the setting not exist?
|
$setting = $db->fetch_array($query);
// Does the setting not exist?
|
if(!$setting['sid'])
| if(!$setting)
|
{ flash_message($lang->error_invalid_sid, 'error'); admin_redirect("index.php?module=config-settings");
| { flash_message($lang->error_invalid_sid, 'error'); admin_redirect("index.php?module=config-settings");
|
Zeile 673 | Zeile 673 |
---|
$setting = $db->fetch_array($query);
// Does the setting not exist?
|
$setting = $db->fetch_array($query);
// Does the setting not exist?
|
if(empty($setting['sid']))
| if(!$setting)
|
{ flash_message($lang->error_invalid_sid, 'error'); admin_redirect("index.php?module=config-settings&action=manage");
| { flash_message($lang->error_invalid_sid, 'error'); admin_redirect("index.php?module=config-settings&action=manage");
|
Zeile 1208 | Zeile 1208 |
---|
} }
|
} }
|
| // reject dangerous/unsupported file paths $field = 'errorloglocation';
if(isset($mybb->input['upsetting'][$field]) && is_string($mybb->input['upsetting'][$field])) { if( strpos($mybb->input['upsetting'][$field], '://') !== false || substr($mybb->input['upsetting'][$field], -4) === '.php' ) { unset($mybb->input['upsetting'][$field]); } }
|
if(is_array($mybb->input['upsetting'])) {
| if(is_array($mybb->input['upsetting'])) {
|