From 9297be8f740e4bc8bd2c7fb0da1b6d1fb7fc9e1c Mon Sep 17 00:00:00 2001 From: sunguangming Date: Thu, 22 May 2025 00:39:40 +0000 Subject: [PATCH] * [error] fix code error. --- lib/base/dao/dao.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/base/dao/dao.class.php b/lib/base/dao/dao.class.php index 632eecde9f..7405bf1689 100644 --- a/lib/base/dao/dao.class.php +++ b/lib/base/dao/dao.class.php @@ -2107,7 +2107,7 @@ class baseSQL */ public function __construct($table = '') { - global $app, dbh; + global $app, $dbh; $this->app = $app; $this->dbh = $dbh; $this->data = new stdclass(); @@ -2708,9 +2708,9 @@ class baseSQL $this->dbh->exec("CREATE TEMPORARY TABLE IF NOT EXISTS {$tableName} (id int PRIMARY KEY)"); $this->dbh->exec("INSERT INTO {$tableName} VALUES {$rows}"); } - catch($PDOException $e) + catch(PDOException $e) { - $message = $exception->getMessage() . ' ' . helper::checkDB2Repair($exception); + $message = $e->getMessage() . ' ' . helper::checkDB2Repair($e); $this->app->triggerError($message, __FILE__, __LINE__); }