mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-03-12 13:21:09 +00:00
fix PDO calls
This commit is contained in:
parent
b3ec1d42a7
commit
c5ae6974bd
@ -180,7 +180,7 @@ class MySQL {
|
|||||||
|
|
||||||
$this->_debug->query->update->total++;
|
$this->_debug->query->update->total++;
|
||||||
|
|
||||||
$query = $this->_db->query('UPDATE `hostSetting` SET `value` = ?,
|
$query = $this->_db->prepare('UPDATE `hostSetting` SET `value` = ?,
|
||||||
`timeUpdated` = ?
|
`timeUpdated` = ?
|
||||||
|
|
||||||
WHERE `hostSettingId` = ?
|
WHERE `hostSettingId` = ?
|
||||||
@ -204,7 +204,7 @@ class MySQL {
|
|||||||
|
|
||||||
$this->_debug->query->delete->total++;
|
$this->_debug->query->delete->total++;
|
||||||
|
|
||||||
$query = $this->_db->query('DELETE FROM `hostSetting` WHERE `hostSettingId` = ?');
|
$query = $this->_db->prepare('DELETE FROM `hostSetting` WHERE `hostSettingId` = ?');
|
||||||
|
|
||||||
$query->execute([$hostSettingId]);
|
$query->execute([$hostSettingId]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user