Changeset 237 for Dev/branches/jos-branch/getObject.php
- Timestamp:
- 01/17/12 18:17:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/jos-branch/getObject.php
r235 r237 4 4 5 5 //Get post variables 6 if ( !isset($_POST['args']) ||empty($_POST['args'])) {7 $requestArray = JSON_de ode($_POST['args']);6 if (isset($_POST['args']) || !empty($_POST['args'])) { 7 $requestArray = JSON_decode($_POST['args']); 8 8 } else { 9 9 die("No input passed!"); … … 18 18 if (isset($results) && !empty($results) && count($results) > 0) { 19 19 // Add type property for easier identification in JS. 20 $results[0]->objectType = type;20 $results[0]->objectType = $type; 21 21 $resultArray[] = $results[0]; 22 22 } … … 26 26 } 27 27 28 $output = JSON .encode($resultArray);28 $output = JSON_encode($resultArray); 29 29 echo $output; 30 30 ?>
Note: See TracChangeset
for help on using the changeset viewer.