Vergleich inc/class_error.php - 1.8.31 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 178Zeile 178
			return true;
}


			return true;
}


		$file = str_replace(MYBB_ROOT, "", $file);








        if(isset($file))
{
$file = str_replace(MYBB_ROOT, "", $file);
}
else
{
$file = "";
}





		$this->has_errors = true;




		if($type == MYBB_SQL || strpos(strtolower($this->error_types[$type]), 'warning') === false)
{
$this->has_errors = true;
}


// For some reason in the installer this setting is set to "<"
$accepted_error_types = array('both', 'error', 'warning', 'none');


// For some reason in the installer this setting is set to "<"
$accepted_error_types = array('both', 'error', 'warning', 'none');

Zeile 382Zeile 392
		$error_data .= $back_trace;
$error_data .= "</error>\n\n";


		$error_data .= $back_trace;
$error_data .= "</error>\n\n";


		if(isset($mybb->settings['errorloglocation']) && trim($mybb->settings['errorloglocation']) != "")





		if(
isset($mybb->settings['errorloglocation']) &&
trim($mybb->settings['errorloglocation']) != "" &&
substr($mybb->settings['errorloglocation'], -4) !== '.php'
)

		{
@error_log($error_data, 3, $mybb->settings['errorloglocation']);
}

		{
@error_log($error_data, 3, $mybb->settings['errorloglocation']);
}