diff options
Diffstat (limited to 'inc/mine.inc')
-rw-r--r-- | inc/mine.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/mine.inc b/inc/mine.inc index aea04ad..6a04cc4 100644 --- a/inc/mine.inc +++ b/inc/mine.inc @@ -8,13 +8,13 @@ function withdrawMine() { $amount = intval($_POST["amount"]); if($amount == 0) return; $_SESSION["mine"]["gold"] += $amount; - echo $_SESSION["mine"]["gold"]; + echo json_encode($_SESSION["mine"]["gold"]); } function sendMine() { if(empty($_SESSION["mine"])) initCraftMine(); $mine = $_SESSION["mine"]; - echo $mine["gold"]; + return $mine["gold"]; } |