Vergleich inc/tasks/checktables.php - 1.8.6 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 12Zeile 12
{
global $db, $mybb, $lang, $plugins;


{
global $db, $mybb, $lang, $plugins;


	// Sorry SQLite, you don't have a decent way of checking if the table is corrupted or not.
if($db->type == "sqlite")

	if(!in_array($db->type, array('mysql', 'mysqli')))


	{
return;
}

	{
return;
}

Zeile 28Zeile 27

$comma = "";
$tables_list = "";


$comma = "";
$tables_list = "";

	$repaired = "";

	$repaired = array();

	$setting_done = false;

$tables = $db->list_tables($mybb->config['database']['database'], $mybb->config['database']['table_prefix']);

	$setting_done = false;

$tables = $db->list_tables($mybb->config['database']['database'], $mybb->config['database']['table_prefix']);

Zeile 62Zeile 61
			}
}


			}
}


		if($table['Table'] != $mybb->config['database']['table_prefix'].".".TABLE_PREFIX."settings" && $setting_done == true)

		if($setting_done == true)

		{
$db->update_query("settings", array('value' => (int)$boardclosed), "name='boardclosed'", 1);
$db->update_query("settings", array('value' => $db->escape_string($boardclosed_reason)), "name='boardclosed_reason'", 1);

		{
$db->update_query("settings", array('value' => (int)$boardclosed), "name='boardclosed'", 1);
$db->update_query("settings", array('value' => $db->escape_string($boardclosed_reason)), "name='boardclosed_reason'", 1);