cfmgrv4 init...3
This commit is contained in:
parent
08a927f496
commit
4b81333ed8
@ -65,7 +65,7 @@ class Account extends Cloudflare
|
||||
if (count(value: $results_array) > 0) {
|
||||
foreach ($results_array as $results) {
|
||||
foreach ($results as $result) {
|
||||
if (is_array($result)) {
|
||||
if (!is_object($result) || get_class($result) !== 'stdClass') {
|
||||
throw new \Exception("Account: result is array:\n" . var_export($result, true) . "\n");
|
||||
}
|
||||
$formDatas = $this->getArrayByResult($result);
|
||||
|
||||
@ -147,7 +147,7 @@ class Record extends Cloudflare
|
||||
if (count(value: $results_array) > 0) {
|
||||
foreach ($results_array as $results) {
|
||||
foreach ($results as $result) {
|
||||
if (is_array($result)) {
|
||||
if (!is_object($result) || get_class($result) !== 'stdClass') {
|
||||
throw new \Exception("Record: result is array:\n" . var_export($result, true) . "\n");
|
||||
}
|
||||
$formDatas = $this->getArrayByResult($result);
|
||||
|
||||
@ -153,7 +153,7 @@ class Zone extends Cloudflare
|
||||
if (count(value: $results_array) > 0) {
|
||||
foreach ($results_array as $results) {
|
||||
foreach ($results as $result) {
|
||||
if (is_array($result)) {
|
||||
if (!is_object($result) || get_class($result) !== 'stdClass') {
|
||||
throw new \Exception("Zone: result is array:\n" . var_export($result, true) . "\n");
|
||||
}
|
||||
$formDatas = $this->getArrayByResult($result);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user