From f47aec8645dcf3c277a5bf498ca2fbf71ddb53f4 Mon Sep 17 00:00:00 2001 From: Genevieve-K <34507086+Genevieve-K@users.noreply.github.com> Date: Wed, 10 Jul 2024 20:33:26 +0200 Subject: [PATCH] Fix fatal error in give-export-donations-exporter.php (#7417) --- includes/admin/tools/export/give-export-donations-exporter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/admin/tools/export/give-export-donations-exporter.php b/includes/admin/tools/export/give-export-donations-exporter.php index fd839c3bcb..ded3eb229e 100644 --- a/includes/admin/tools/export/give-export-donations-exporter.php +++ b/includes/admin/tools/export/give-export-donations-exporter.php @@ -646,6 +646,7 @@ public function get_percentage_complete() { * @access public * * @since 2.1 + * @unreleased Use maybe_serialize() for column data (some data are arrays) * * @return string|false */ @@ -663,6 +664,7 @@ public function print_csv_rows() { foreach ( $row as $col_id => $column ) { // Make sure the column is valid if ( array_key_exists( $col_id, $cols ) ) { + $column = maybe_serialize( $column ); $row_data .= '"' . $this->escape_csv_cell_data(preg_replace( '/"/', "'", $column )) . '"'; $row_data .= $i == count( $cols ) ? '' : ','; $i ++;