From a484319bb03261bda2692277a72c12520a65a5ab Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Mon, 2 Aug 2010 22:01:13 +0000 Subject: [PATCH] restore graph error width FOR GREAT JUSTICE (someone fix the scale part for me plx) git-svn-id: http://www.observium.org/svn/observer/trunk@1623 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/graphs/graph.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/graphs/graph.inc.php b/html/includes/graphs/graph.inc.php index 78bf561dd7..e325037a60 100644 --- a/html/includes/graphs/graph.inc.php +++ b/html/includes/graphs/graph.inc.php @@ -81,7 +81,7 @@ function graph_error ($string) { global $width, $height; header('Content-type: image/png'); - $im = imagecreate($width, $height); + $im = imagecreate($width+79, $height); $orange = imagecolorallocate($im, 255, 225, 225); $px = (imagesx($im) - 7.5 * strlen($string)) / 2; imagestring($im, 3, $px, $height / 2 - 8, $string, imagecolorallocate($im, 128, 0, 0));