From c02b98343c0644c2f50a3db9bc658e7702bed580 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 28 Jul 2023 10:14:48 +0200 Subject: [PATCH] Fix PHP 7.x syntax compatibility --- files/lib/system/exporter/SMF2xExporter.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/lib/system/exporter/SMF2xExporter.class.php b/files/lib/system/exporter/SMF2xExporter.class.php index 7b2632c..79384c2 100644 --- a/files/lib/system/exporter/SMF2xExporter.class.php +++ b/files/lib/system/exporter/SMF2xExporter.class.php @@ -719,7 +719,7 @@ class SMF2xExporter extends AbstractExporter return $row['count']; } - catch (DatabaseException) { + catch (DatabaseException $e) { } // SMF 2.0 @@ -764,7 +764,7 @@ class SMF2xExporter extends AbstractExporter return; } - catch (DatabaseException) { + catch (DatabaseException $e) { } // SMF 2.0 @@ -954,7 +954,7 @@ class SMF2xExporter extends AbstractExporter ORDER BY recipients.id_pm, recipients.id_member"; $statement = $this->database->prepareStatement($sql, $limit, $offset); $statement->execute(); - } catch (DatabaseException) { + } catch (DatabaseException $e) { // SMF 2.0 $sql = "SELECT recipients.*, pm.id_pm_head, members.member_name, pm.msgtime, pm.id_member_from, ( -- 2.20.1