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));