Skip to content

Commit

Permalink
Issue #485: Fix implicit float-to-int conversion deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
bugfolder committed Mar 1, 2024
1 parent 7ebbec1 commit cf4a316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uc_store/classes/encrypt.inc
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class UbercartEncryption {
$fudgefactor[] = $fudge;

if (!empty($this->mod)) {
if ($fudge % $this->mod == 0) {
if (((int) $fudge) % $this->mod == 0) {
$fudge = $fudge * -1;
}
}
Expand Down

0 comments on commit cf4a316

Please sign in to comment.