@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | $ipAddress = $_SERVER['argv'][3]; |
| 6 | 6 | $cpl->format = 'json'; |
| 7 | -$status = json_decode($cpl->fetchLicenseRaw(['ip' => $ipAddress]), true); |
|
| 7 | +$status = json_decode($cpl->fetchLicenseRaw(['ip' => $ipAddress]), TRUE); |
|
| 8 | 8 | print_r($status); |
| 9 | 9 | if (isset($status['@attributes'])) { |
| 10 | 10 | print 'The license id for the ip is: '.$status['@attributes']['licenseid'].PHP_EOL; |