Skip to content

Commit

Permalink
Resolving Issue #1351
Browse files Browse the repository at this point in the history
Errorimage does not render on systems without GD ttf support
  • Loading branch information
cigamit committed Feb 14, 2018
1 parent a11c7ba commit c7d2039
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
Cacti CHANGELOG

1.1.36
-issue#1331: Maintenance time should occur at midnight, not random time in day
-issue#1334: Console->Users->(Edit) Permissions checkmark descriptions missing
-issue#1336: Fix issue with $config not being defined
-issue#1339: First graph of second page does not render
-issue#1348: Toggle context menu of Zoom
-issue#1351: Errorimage does not render on systems without GD ttf support
-issue: Fixed some language string inconsistencies
-issue: Implementation of error handling causing errors on New Graphs page
-feature: Updated Dutch translations
Expand Down
2 changes: 1 addition & 1 deletion lib/rrd.php
Original file line number Diff line number Diff line change
Expand Up @@ -3398,7 +3398,7 @@ function rrdtool_create_error_image($string, $width = '', $height = '') {
} else {
foreach($strings as $string) {
if (trim($string) != '') {
if (!imagestring($image, $font_size, $xpos, $ypos, $string, $font_color)) {
if (!imagestring($image, $font_size, $xpos, $ypos, $string, $text_color)) {
cacti_log('Text overlay failed');
}
$ypos -= ($font_size + $padding);
Expand Down

0 comments on commit c7d2039

Please sign in to comment.