aboutsummaryrefslogtreecommitdiffstats
path: root/inc/mine.inc
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-04-24 22:30:43 +0200
committerpiernov <piernov@piernov.org>2016-04-24 22:30:43 +0200
commit64e92bb7b10bf521aa2992d20c243c41573e0ee8 (patch)
tree81eeb7a7502ed3e8e40cd2e434a462d5d13581f1 /inc/mine.inc
parenta7d9febaba01a5f32ff77dade8f4fa1e97870354 (diff)
parentbc8e1117591e22a2ec850ce34358abadf950d87e (diff)
downloadcandybox-64e92bb7b10bf521aa2992d20c243c41573e0ee8.tar.gz
candybox-64e92bb7b10bf521aa2992d20c243c41573e0ee8.tar.bz2
candybox-64e92bb7b10bf521aa2992d20c243c41573e0ee8.tar.xz
candybox-64e92bb7b10bf521aa2992d20c243c41573e0ee8.zip
Merge branch 'feat/shop' into piernov
Diffstat (limited to 'inc/mine.inc')
-rw-r--r--inc/mine.inc4
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"];
}