mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
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:
parent
5cffb39239
commit
1a96cc09c1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue