1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

bug fixes

This commit is contained in:
David Bomba 2016-03-03 20:52:47 +11:00
parent 5950d0e0be
commit fd4ec8cb6d

View File

@ -133,7 +133,7 @@ class AccountApiController extends BaseAPIController
$account->devices = json_encode($devices); $account->devices = json_encode($devices);
$account->save(); $account->save();
$devices[$x]['account_key'] = $account->account_key; $devices[$x]['account_key'] = $account->account_key;
return $this->response($devices[$x]); return $this->response($devices[$x]);
} }
} }
@ -184,9 +184,9 @@ class AccountApiController extends BaseAPIController
'notify_paid' => $request->notify_paid, 'notify_paid' => $request->notify_paid,
]; ];
unset($devices[$x]); //unset($devices[$x]);
$devices[] = $newDevice; $devices[$x] = $newDevice;
$account->devices = json_encode($devices); $account->devices = json_encode($devices);
$account->save(); $account->save();