From 39c93ac9caa1ff101cc4907ecb0db68bf6478a11 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 16 Nov 2021 08:37:54 +0100 Subject: [PATCH] fix PHP 8.0 ValueError: fgetcsv(): Argument #3 ($separator) must be a single character --- importexport/inc/class.importexport_import_csv.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/importexport/inc/class.importexport_import_csv.inc.php b/importexport/inc/class.importexport_import_csv.inc.php index 56977915a1..8febfe05be 100755 --- a/importexport/inc/class.importexport_import_csv.inc.php +++ b/importexport/inc/class.importexport_import_csv.inc.php @@ -83,12 +83,12 @@ class importexport_import_csv implements importexport_iface_import_record { //, * @param string $_resource resource containing data. May be each valid php-stream * @param array $_options options for the resource array with keys: charset and fieldsep */ - public function __construct( $_resource, array $_options ) { + public function __construct( $_resource, array $_options ) + { $this->resource = $_resource; - $this->csv_fieldsep = $_options['fieldsep']; + $this->csv_fieldsep = $_options['fieldsep'][0]; if($_options['charset'] == 'user') $_options['charset'] = $GLOBALS['egw_info']['user']['preferences']['common']['csv_charset']; $this->csv_charset = $_options['charset']; - return; } // end of member function __construct /**