
01-08-2004, 08:42 PM
|
|
|
Join Date: Feb 2003
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by kentaurus
Erase this lines:
if ($pm['attach'])
{
and the "}" at the end, ej.
Code:
$pm['attachments'] = array();
$attachments = $DB_site->query("
SELECT filename, filesize, visible, attachmentid, counter, postid, IF(thumbnail = '', 0, 1) AS hasthumbnail, LENGTH(thumbnail) AS thumbnailsize
FROM " . TABLE_PREFIX . "attachment
WHERE private='".$pm['pmtextid']."'
");
while ($attachment = $DB_site->fetch_array($attachments))
{
$attachment['kilobytes'] = vb_number_format($attachment['filesize'] / 1024, 1);
$pm['attachments']["$attachment[attachmentid]"] = $attachment;
}
and see if it does the trick. That check is there for some code optimization and normally it isn't a problem.
|
still not working.
|