Browse Source

fix PDO calls

main
ghost 1 year ago
parent
commit
c5ae6974bd
  1. 4
      library/mysql.php

4
library/mysql.php

@ -180,7 +180,7 @@ class MySQL { @@ -180,7 +180,7 @@ class MySQL {
$this->_debug->query->update->total++;
$query = $this->_db->query('UPDATE `hostSetting` SET `value` = ?,
$query = $this->_db->prepare('UPDATE `hostSetting` SET `value` = ?,
`timeUpdated` = ?
WHERE `hostSettingId` = ?
@ -204,7 +204,7 @@ class MySQL { @@ -204,7 +204,7 @@ class MySQL {
$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]);

Loading…
Cancel
Save