diff options
author | Stefan Giehl <stefan@piwik.org> | 2018-09-30 23:17:03 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-09-30 23:17:03 +0300 |
commit | 1018195c634ca3403b3cc689dfd217fd39fc7b14 (patch) | |
tree | 537a45f673751b3a177cbba6a91d83c68e1e23f8 /plugins/ImageGraph | |
parent | c90a702071b16f298b9f5628d214d5aa55793fc7 (diff) |
use empty array as default value for cpchart colors (#13509)
Diffstat (limited to 'plugins/ImageGraph')
-rw-r--r-- | plugins/ImageGraph/StaticGraph.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ImageGraph/StaticGraph.php b/plugins/ImageGraph/StaticGraph.php index 44c9309a59..b07f197650 100644 --- a/plugins/ImageGraph/StaticGraph.php +++ b/plugins/ImageGraph/StaticGraph.php @@ -57,9 +57,9 @@ abstract class StaticGraph extends BaseFactory protected $colors; protected $font; protected $fontSize; - protected $textColor; - protected $backgroundColor; - protected $gridColor; + protected $textColor = []; + protected $backgroundColor = []; + protected $gridColor = []; protected $legendFontSize; protected $width; protected $height; @@ -368,7 +368,7 @@ abstract class StaticGraph extends BaseFactory 'B' => hexdec($matches[3]) ); } else { - return false; + return []; } } } |