Skip to content

Commit

Permalink
Merge pull request #488 from bugfolder/485_float_int_conversion
Browse files Browse the repository at this point in the history
Issue #485: Fix implicit float-to-int conversion deprecation warning.
  • Loading branch information
bugfolder authored Mar 5, 2024
2 parents aad00e2 + cf4a316 commit a152891
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 a152891

Please sign in to comment.