Skip to content

Commit

Permalink
Fix SQL query in Item model to correct WHERE clause formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
navjottomer committed Feb 6, 2025
1 parent 8fa26f1 commit bfcdcda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oc-includes/osclass/classes/model/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ public function updateExpirationDate($id, $expiration_time, $do_stats = true)
$result = $this->dao->update(
$this->getTableName(),
sprintf('dt_expiration = %s', $dt_expiration),
sprintf(' WHERE pk_i_id = %d', $id)
sprintf('pk_i_id = %d', $id)
);
if ($result && $result > 0) {
$this->dao->select('i.dt_expiration, i.fk_i_user_id, i.fk_i_category_id, l.fk_c_country_code');
Expand Down

0 comments on commit bfcdcda

Please sign in to comment.