Wenn ich einen als defekt gemeldeten Download zurücksetzen möchte, erhalte ich die Fehlermeldung:
Code: Alles auswählen
[phpBB Debug] PHP Notice: in file [ROOT]/downloads.php on line 695: Undefined offset: 2
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 2570: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:4056)
Code: Alles auswählen
[phpBB Debug] PHP Notice: in file [ROOT]/downloads.php on line 695: Undefined offset: 6
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 2570: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:4056)
Code: Alles auswählen
if ($index[$cat_id]['auth_mod'] || $cat_auth['auth_mod'] || ($auth->acl_get('a_') && $user->data['is_registered']))
Code: Alles auswählen
/*
* reset reported broken download if allowed
*/
if ($view == 'unbroken' && $df_id && $cat_id)
{
$cat_auth = array();
$cat_auth = dl_auth::dl_cat_auth($cat_id);
if ($index[$cat_id]['auth_mod'] || $cat_auth['auth_mod'] || ($auth->acl_get('a_') && $user->data['is_registered']))
{
$sql = 'UPDATE ' . DOWNLOADS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', array(
'broken' => 0)) . ' WHERE id = ' . (int) $df_id;
$db->sql_query($sql);
}
redirect(append_sid("{$phpbb_root_path}downloads.$phpEx", "view=detail&df_id=$df_id&cat_id=$cat_id"));
}