diff options
author | piernov <piernov@piernov.org> | 2016-04-24 22:15:52 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-04-24 22:15:52 +0200 |
commit | 9b618abd14b69bd56e64bd998de8f9ccb722fba7 (patch) | |
tree | dc2e87e55a59fff54d1ae3e8fe08d810b856db8f /inc/mine.inc | |
parent | f2c007680664004a0745d14ee375958ce4794330 (diff) | |
download | candybox-9b618abd14b69bd56e64bd998de8f9ccb722fba7.tar.gz candybox-9b618abd14b69bd56e64bd998de8f9ccb722fba7.tar.bz2 candybox-9b618abd14b69bd56e64bd998de8f9ccb722fba7.tar.xz candybox-9b618abd14b69bd56e64bd998de8f9ccb722fba7.zip |
json_encode() PHP gold amount sent to client
Diffstat (limited to 'inc/mine.inc')
-rw-r--r-- | inc/mine.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/mine.inc b/inc/mine.inc index aea04ad..4293243 100644 --- a/inc/mine.inc +++ b/inc/mine.inc @@ -8,7 +8,7 @@ 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() { |