исправление косяка с DataBase::update
This commit is contained in:
1 parent
11dce948d9
commit
19da842559
3 files changed
+4
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -676,6 +676,7 @@
|
||||
if (empty($_SESSION['authorize'])) {
|
||||
self::authorize($arUser['id']);
|
||||
}
|
||||
$DB->update(self::TABLE, ['id' => $arUser['id']], ['last_active' => time()]);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user