mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into develop
This commit is contained in:
commit
f8032f04b2
@ -184,12 +184,10 @@ class AccountApiController extends BaseAPIController
|
||||
|
||||
$devices = json_decode($account->devices, true);
|
||||
|
||||
foreach($devices as $key => $value)
|
||||
for($x=0; $x<count($devices); $x++)
|
||||
{
|
||||
|
||||
if($request->token == $value['token'])
|
||||
unset($devices[$key]);
|
||||
|
||||
if($request->token == $devices[$x]['token'])
|
||||
unset($devices[$x]);
|
||||
}
|
||||
|
||||
$account->devices = json_encode(array_values($devices));
|
||||
|
@ -13,6 +13,9 @@ class Cloudflare
|
||||
$zones = json_decode(env('CLOUDFLARE_ZONE_IDS',''), true);
|
||||
|
||||
foreach($zones as $zone)
|
||||
{
|
||||
|
||||
if($account->subdomain != "")
|
||||
{
|
||||
|
||||
$curl = curl_init();
|
||||
@ -43,6 +46,8 @@ class Cloudflare
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user