From 1160c8a4c5d94f8991cd410cf83dc533e72ebde9 Mon Sep 17 00:00:00 2001
From: machine62 <28401480+machine62@users.noreply.github.com>
Date: Sat, 20 Apr 2024 08:14:42 +0200
Subject: [PATCH] Erreur uwamp
erreur uwamp
prepa tag 1.9.4
---
cdr_list.php | 5 +++--
version.txt | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/cdr_list.php b/cdr_list.php
index 925df5d..7d20cce 100644
--- a/cdr_list.php
+++ b/cdr_list.php
@@ -38,12 +38,13 @@
$user_technology = $user_empire["technology"];
// todo utiliser formule de pitch
$fret_recycleur = 20000;
-if ($user_technology['Hyp'] !=0)
+if ((int)$user_technology['Hyp'] !=0) // (int) sinon bug sous windows ( uwamp)
{
- $fret_recycleur = (20000 * (1 + 0.05 * $user_technology['Hyp']));
+ $fret_recycleur = (20000 * (1 + 0.05 * (int)$user_technology['Hyp']));
}
?>
+