исправление косяка с DataBase::update

This commit is contained in:
rsgrinko committed 2026-07-24 15:16:58 +03:00
1 parent 11dce948d9
commit 19da842559
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -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);
}
/**
+1
View File
@@ -676,6 +676,7 @@
if (empty($_SESSION['authorize'])) {
self::authorize($arUser['id']);
}
$DB->update(self::TABLE, ['id' => $arUser['id']], ['last_active' => time()]);
return true;
}
}