Skip to content

Commit 1cde447

Browse files
committed
⚡😆
1 parent 18538fc commit 1cde447

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ImageCharts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ public function toURL() {
562562
$query_string = http_build_query($this->query);
563563
$url .= '?'. $query_string;
564564

565-
if(isset($this->query["icac"], $this->secret) && count($this->secret) > 0) {
565+
if(isset($this->query["icac"], $this->secret) && strlen($this->secret) > 0) {
566566
$url .= '&ichm='. hash_hmac('sha256', $query_string, $this->secret);
567567
}
568568

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Replace both values in the code example below:
265265
```php
266266
<?php
267267

268-
$chart_url = (new ImageCharts(array("secret" : "SECRET_KEY")))
268+
$chart_url = (new ImageCharts(array("secret" => "SECRET_KEY")))
269269
->icac('ACCOUNT_ID')
270270
->cht('p3') // pie chart
271271
->chs('700x190') // 700px x 190px

examples/enterprise_sign_chart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
$chart_url = (new ImageCharts(array("secret" : "SECRET_KEY")))
3+
$chart_url = (new ImageCharts(array("secret" => "SECRET_KEY")))
44
->icac('ACCOUNT_ID')
55
->cht('p3') // pie chart
66
->chs('700x190') // 700px x 190px

0 commit comments

Comments
 (0)