No functional change, just making it look nicer...

git-svn-id: file:///svn/phpbb/trunk@5569 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-02-21 21:12:17 +00:00
parent 5cffb39239
commit 1a96cc09c1

View file

@ -216,7 +216,7 @@ function view_folder($id, $mode, $folder_id, $folder, $type)
case 'CSV_EXCEL':
$mimetype = 'text/csv';
$filetype = 'csv';
if ($type == 'csv_excel')
if ($type == 'CSV_EXCEL')
{
$enclosure = '"';
$delimiter = ',';
@ -235,7 +235,7 @@ function view_folder($id, $mode, $folder_id, $folder, $type)
{
$cell = str_replace($enclosure, $enclosure . $enclosure, $text);
if (strpos($cell, $enclosure) !== false || strpos($cell, $delimiter) !== FALSE || strpos($cell, $newline) !== FALSE)
if (strpos($cell, $enclosure) !== false || strpos($cell, $delimiter) !== false || strpos($cell, $newline) !== false)
{
$string .= $enclosure . $text . $enclosure . $delimiter;
}