Browse Source

Fix Undefined variable notice

Maav 11 months ago
parent
commit
c7a5a018c5
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      sections/store/index.php

+ 4
- 2
sections/store/index.php View File

@@ -14,8 +14,10 @@ if (isset($_GET['api']) && $_GET['api'] == 1) {
14 14
     list($Purchases, $Price) = [0, 1000];
15 15
   }
16 16
 
17
-  $Response->purchases = $Purchases;
18
-  $Response->price = $Price;
17
+  $Response = array(
18
+    "purchases" => $Purchases,
19
+    "price" => $Price,
20
+  );
19 21
   echo json_encode($Response);
20 22
 
21 23
 } else {

Loading…
Cancel
Save