Skip to content

Commit ae5301c

Browse files
committed
Must do json_decode first.
1 parent caa8de3 commit ae5301c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webportal/wordpress/wp-content/plugins/vehicle-config-parser/vehicleConfigParser.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ function vehicleConfigParser($data) {
3939
try
4040
{
4141
$ret = $client->addVehicleConfig("MOPED", $data);
42-
43-
if($ret->return == "true")
42+
$ret = json_decode($ret);
43+
if($ret->result == "true")
4444
echo "<br/><font color='green'>Vehicle Configuration updated successfuflly</font><br />";
4545
else
46-
echo "<br/><font color='red'>".$ret->return."</font><br />";
46+
echo "<br/><font color='red'>".$ret->result."</font><br />";
4747
return $ret;
4848
} catch (SoapFault $exception) {
4949
print $exception;

0 commit comments

Comments
 (0)