Code: Alles auswählen
Warning: sprintf(): too few arguments in /home/www/web1/html/viewtopic.php on line 2110
http://www.eclipse16v.info/viewtopic.php?t=3705
Woran kann das liegen?
Code: Alles auswählen
Warning: sprintf(): too few arguments in /home/www/web1/html/viewtopic.php on line 2110
Code: Alles auswählen
//
// Editing information
//
$l_edited_by = '';
if ( $postrow[$i]['post_edit_count'] )
{
$editer = '';
if ( !$postrow[$i]['post_edit_user'] )
{
$editer = $poster;
}
else
{
$usr_id = $postrow[$i]['post_edit_user'];
$sql = "SELECT username
FROM " . USERS_TABLE . " u
WHERE user_id = " . $usr_id;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Tried obtaining data for a non-existent user', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$editer = $row['username'];
}
$l_edit_time_total = ( $postrow[$i]['post_edit_count'] == 1 ) ? $lang['Edited_time_total'] : $lang['Edited_times_total'];
$l_edited_by = '<br /><br />' . sprintf($l_edit_time_total, $editer, create_date($board_config['default_dateformat'], $postrow[$i]['post_edit_time'], $board_config['board_timezone']), $postrow[$i]['post_edit_count']);
}
else
{
$l_edited_by = '';
}
Code: Alles auswählen
message_die(GENERAL_ERROR, 'Tried obtaining data for a non-existent user', '', __LINE__, __FILE__, $sql);