mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-24 13:34:25 +00:00
fix SQL syntax error
This commit is contained in:
parent
d46c4921c5
commit
142d496108
@ -549,7 +549,7 @@ class MySQL {
|
||||
// Cleaner tools
|
||||
public function resetBannedHostPages(int $timeOffset) {
|
||||
|
||||
$query = $this->_db->prepare('UPDATE `hostPage` SET `timeBanned` = NULL WHERE `timeBanned` IS NOT NULL AND `timeBanned` < ' . (int) $timeOffset);
|
||||
$query = $this->_db->prepare('UPDATE `hostPage` SET `timeBanned` = NULL WHERE `timeBanned` IS NOT NULL AND `timeBanned` < ?');
|
||||
|
||||
$query->execute([$timeOffset]);
|
||||
|
||||
@ -558,7 +558,7 @@ class MySQL {
|
||||
|
||||
public function resetBannedHosts(int $timeOffset) {
|
||||
|
||||
$query = $this->_db->prepare('UPDATE `host` SET `timeBanned` = NULL WHERE `timeBanned` IS NOT NULL AND `timeBanned` < ' . (int) $timeOffset);
|
||||
$query = $this->_db->prepare('UPDATE `host` SET `timeBanned` = NULL WHERE `timeBanned` IS NOT NULL AND `timeBanned` < ?');
|
||||
|
||||
$query->execute([$timeOffset]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user