Skip to content

Commit

Permalink
Must do json_decode first.
Browse files Browse the repository at this point in the history
  • Loading branch information
arndtjonasson committed Nov 11, 2015
1 parent caa8de3 commit ae5301c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ function vehicleConfigParser($data) {
try
{
$ret = $client->addVehicleConfig("MOPED", $data);

if($ret->return == "true")
$ret = json_decode($ret);
if($ret->result == "true")
echo "<br/><font color='green'>Vehicle Configuration updated successfuflly</font><br />";
else
echo "<br/><font color='red'>".$ret->return."</font><br />";
echo "<br/><font color='red'>".$ret->result."</font><br />";
return $ret;
} catch (SoapFault $exception) {
print $exception;
Expand Down

0 comments on commit ae5301c

Please sign in to comment.