Set some defaults to null in get vehicles #395
This commit is contained in:
parent
976fca1261
commit
381323a07e
1 changed files with 2 additions and 2 deletions
|
|
@ -718,11 +718,11 @@ class APIController extends Controller implements LoggedController
|
|||
$cvs = $cust->getVehicles();
|
||||
foreach ($cvs as $cv)
|
||||
{
|
||||
$battery_id = '';
|
||||
$battery_id = null;
|
||||
if ($cv->getCurrentBattery() != null)
|
||||
$battery_id = $cv->getCurrentBattery()->getID();
|
||||
|
||||
$wty_ex = '';
|
||||
$wty_ex = null;
|
||||
if ($cv->getWarrantyExpiration() != null)
|
||||
$wty_ex = $cv->getWarrantyExpiration()->format('Y-m-d');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue