Fix PHP 7.x syntax compatibility
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 28 Jul 2023 08:14:48 +0000 (10:14 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 28 Jul 2023 08:14:48 +0000 (10:14 +0200)
files/lib/system/exporter/SMF2xExporter.class.php

index 7b2632c888844f8c92af0e900ed4cd23082d8973..79384c21bb6da3d88d48e4959f7499118a5967f6 100644 (file)
@@ -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,
                                 (