From fd5ce16b389673dcd3115e812b2678852aee7fbc Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Wed, 28 Feb 2024 09:06:56 +0800 Subject: [PATCH] * Fix syntax error in tmp log file. --- .../sql-parser/src/Components/Condition.php | 2 +- module/dataview/table/effort.php | 6 +++--- module/dataview/view/querybase.html.php | 2 +- module/pivot/model.php | 12 +++++++----- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/sqlparser/vendor/phpmyadmin/sql-parser/src/Components/Condition.php b/lib/sqlparser/vendor/phpmyadmin/sql-parser/src/Components/Condition.php index 700b071ef2..cbb029ac22 100644 --- a/lib/sqlparser/vendor/phpmyadmin/sql-parser/src/Components/Condition.php +++ b/lib/sqlparser/vendor/phpmyadmin/sql-parser/src/Components/Condition.php @@ -87,7 +87,7 @@ class Condition extends Component */ public function __construct($expr = null) { - $this->expr = trim($expr); + $this->expr = !empty($expr) ? trim($expr) : $expr; } /** diff --git a/module/dataview/table/effort.php b/module/dataview/table/effort.php index ae789aa3e0..d6c2c80982 100644 --- a/module/dataview/table/effort.php +++ b/module/dataview/table/effort.php @@ -1,5 +1,5 @@ app->loadLang('account'); +$this->app->loadLang('user'); $schema = new stdclass(); @@ -9,6 +9,6 @@ $schema->tables = array(); $schema->tables['effort'] = 'zt_effort'; $schema->fields = array(); -$schema->fields['id'] = array('type' => 'number', 'name' => $this->lang->account->id); -$schema->fields['account'] = array('type' => 'user', 'name' => $this->lang->account->name); +$schema->fields['id'] = array('type' => 'number', 'name' => $this->lang->user->id); +$schema->fields['account'] = array('type' => 'user', 'name' => $this->lang->user->account); diff --git a/module/dataview/view/querybase.html.php b/module/dataview/view/querybase.html.php index fb94cc79f0..b1881452b1 100644 --- a/module/dataview/view/querybase.html.php +++ b/module/dataview/view/querybase.html.php @@ -90,7 +90,7 @@