исправление косяка с DataBase::update
This commit is contained in:
1 parent
11dce948d9
commit
19da842559
3 files changed
+4
-3
No files matched your search
Generated
+2
-2
@@ -1,11 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||||
<data-source source="LOCAL" name="delta_core@its-dev.site" uuid="8b0b057e-4936-4e89-ad6c-8f9bd2cfe04a">
|
<data-source source="LOCAL" name="delta@10.10.10.85" uuid="8b0b057e-4936-4e89-ad6c-8f9bd2cfe04a">
|
||||||
<driver-ref>mysql.8</driver-ref>
|
<driver-ref>mysql.8</driver-ref>
|
||||||
<synchronize>true</synchronize>
|
<synchronize>true</synchronize>
|
||||||
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
||||||
<jdbc-url>jdbc:mysql://its-dev.site:3306/delta_core</jdbc-url>
|
<jdbc-url>jdbc:mysql://10.10.10.85:3306/delta</jdbc-url>
|
||||||
<working-dir>$ProjectFileDir$</working-dir>
|
<working-dir>$ProjectFileDir$</working-dir>
|
||||||
</data-source>
|
</data-source>
|
||||||
<data-source source="LOCAL" name="test.db" uuid="c1199c0a-fc79-4092-9eb0-f1273cdcbe20">
|
<data-source source="LOCAL" name="test.db" uuid="c1199c0a-fc79-4092-9eb0-f1273cdcbe20">
|
||||||
|
|||||||
@@ -99,7 +99,7 @@
|
|||||||
*/
|
*/
|
||||||
public function update(string $table, array $where, array $set): bool
|
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'])) {
|
if (empty($_SESSION['authorize'])) {
|
||||||
self::authorize($arUser['id']);
|
self::authorize($arUser['id']);
|
||||||
}
|
}
|
||||||
|
$DB->update(self::TABLE, ['id' => $arUser['id']], ['last_active' => time()]);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user