Vergleich inc/functions_upload.php - 1.8.27 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 68Zeile 68
	if($db->fetch_field($query, "numreferences") == 0)
{
delete_uploaded_file($uploadspath_abs."/".$attachment['attachname']);

	if($db->fetch_field($query, "numreferences") == 0)
{
delete_uploaded_file($uploadspath_abs."/".$attachment['attachname']);

		if($attachment['thumbnail'])

		if($attachment['thumbnail'] && $attachment['thumbnail'] !== 'SMALL')

		{
delete_uploaded_file($uploadspath_abs."/".$attachment['thumbnail']);
}

		{
delete_uploaded_file($uploadspath_abs."/".$attachment['thumbnail']);
}

Zeile 624Zeile 624

$thumbnail = generate_thumbnail($uploadspath_abs."/".$filename, $uploadspath_abs, $thumbname, $mybb->settings['attachthumbh'], $mybb->settings['attachthumbw']);



$thumbnail = generate_thumbnail($uploadspath_abs."/".$filename, $uploadspath_abs, $thumbname, $mybb->settings['attachthumbh'], $mybb->settings['attachthumbw']);


		if($thumbnail['filename'])

		if(!empty($thumbnail['filename']))

		{
$attacharray['thumbnail'] = $thumbnail['filename'];
}

		{
$attacharray['thumbnail'] = $thumbnail['filename'];
}