Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
virmix authored Oct 13, 2020
1 parent f7c0ad9 commit ef5d665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plib/library/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function getDomainNames()
$result = @json_decode(curl_exec($curl), true);

if (!isset($result['result'])) {
throw new Exception('Cloudflare Error: '.json_encode($result));
throw new Exception('API Key not valid');
}

static::$zones = array_combine(array_column($result['result'], 'id'), array_column($result['result'], 'name'));
Expand Down

0 comments on commit ef5d665

Please sign in to comment.