aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-04-24 22:15:52 +0200
committerpiernov <piernov@piernov.org>2016-04-24 22:15:52 +0200
commit9b618abd14b69bd56e64bd998de8f9ccb722fba7 (patch)
treedc2e87e55a59fff54d1ae3e8fe08d810b856db8f
parentf2c007680664004a0745d14ee375958ce4794330 (diff)
downloadcandybox-9b618abd14b69bd56e64bd998de8f9ccb722fba7.tar.gz
candybox-9b618abd14b69bd56e64bd998de8f9ccb722fba7.tar.bz2
candybox-9b618abd14b69bd56e64bd998de8f9ccb722fba7.tar.xz
candybox-9b618abd14b69bd56e64bd998de8f9ccb722fba7.zip
json_encode() PHP gold amount sent to client
-rw-r--r--inc/mine.inc2
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() {