Zeile 257 | Zeile 257 |
---|
$query = $db->simple_select("helpsections", "*", "sid = '".$mybb->get_input('sid', MyBB::INPUT_INT)."'"); $section = $db->fetch_array($query);
|
$query = $db->simple_select("helpsections", "*", "sid = '".$mybb->get_input('sid', MyBB::INPUT_INT)."'"); $section = $db->fetch_array($query);
|
if(!$section['sid'])
| if(!$section)
|
{ flash_message($lang->error_missing_section_id, 'error'); admin_redirect("index.php?module=config-help_documents");
| { flash_message($lang->error_missing_section_id, 'error'); admin_redirect("index.php?module=config-help_documents");
|
Zeile 368 | Zeile 368 |
---|
$doc = $db->fetch_array($query);
// Invalid document?
|
$doc = $db->fetch_array($query);
// Invalid document?
|
if(!$doc['hid'])
| if(!$doc)
|
{ flash_message($lang->error_missing_hid, 'error'); admin_redirect("index.php?module=config-help_documents");
| { flash_message($lang->error_missing_hid, 'error'); admin_redirect("index.php?module=config-help_documents");
|
Zeile 516 | Zeile 516 |
---|
$section = $db->fetch_array($query);
// Invalid section?
|
$section = $db->fetch_array($query);
// Invalid section?
|
if(!$section['sid'])
| if(!$section)
|
{ flash_message($lang->error_missing_section_id, 'error'); admin_redirect("index.php?module=config-help_documents");
| { flash_message($lang->error_missing_section_id, 'error'); admin_redirect("index.php?module=config-help_documents");
|
Zeile 544 | Zeile 544 |
---|
$doc = $db->fetch_array($query);
// Invalid document?
|
$doc = $db->fetch_array($query);
// Invalid document?
|
if(!$doc['hid'])
| if(!$doc)
|
{ flash_message($lang->error_missing_hid, 'error'); admin_redirect("index.php?module=config-help_documents");
| { flash_message($lang->error_missing_hid, 'error'); admin_redirect("index.php?module=config-help_documents");
|