Skip to content

Commit

Permalink
Do *not* quote prepared query params. Fixes glpi-project#3303
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Dec 15, 2017
1 parent 0b31728 commit 2875bbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/savedsearch.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1242,9 +1242,9 @@ static public function croncountAll($task) {
$self = new self();
$now = date('Y-m-d H:i:s');
$stmt = $DB->prepare("UPDATE `".self::getTable()."`
SET `last_execution_time` = '?',
`last_execution_date` = '?'
WHERE `id` = '?'");
SET `last_execution_time` = ?,
`last_execution_date` = ?
WHERE `id` = ?");

$DB->dbh->begin_transaction();
while ($row = $iterator->next()) {
Expand Down

0 comments on commit 2875bbb

Please sign in to comment.