From 19da84255993408bcf3a26de74fd7341ceadb965 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Fri, 24 Jul 2026 15:16:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D1=81=D1=8F=D0=BA=D0=B0?= =?UTF-8?q?=20=D1=81=20DataBase::update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/dataSources.xml | 4 ++-- core/lib/Core/Database/DataBase.php | 2 +- core/lib/Core/Models/User.class.php | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index 94734fd..2321224 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -1,11 +1,11 @@ - + mysql.8 true com.mysql.cj.jdbc.Driver - jdbc:mysql://its-dev.site:3306/delta_core + jdbc:mysql://10.10.10.85:3306/delta $ProjectFileDir$ diff --git a/core/lib/Core/Database/DataBase.php b/core/lib/Core/Database/DataBase.php index 90d6def..ffb5fe7 100644 --- a/core/lib/Core/Database/DataBase.php +++ b/core/lib/Core/Database/DataBase.php @@ -99,7 +99,7 @@ */ public function update(string $table, array $where, array $set): bool { - return $this->db->update($table, $set, $where); + return $this->db->update($table, $where, $set); } /** diff --git a/core/lib/Core/Models/User.class.php b/core/lib/Core/Models/User.class.php index d7f2cf1..20c61a7 100644 --- a/core/lib/Core/Models/User.class.php +++ b/core/lib/Core/Models/User.class.php @@ -676,6 +676,7 @@ if (empty($_SESSION['authorize'])) { self::authorize($arUser['id']); } + $DB->update(self::TABLE, ['id' => $arUser['id']], ['last_active' => time()]); return true; } }