Here is patch made with diff -ur then solves my problem.
Dan
--- amavis-stats.php 2006-12-04 08:24:00.000000000 +0100 +++ amavis-stats.php.new 2007-06-20 11:24:57.000000000 +0200 @@ -57,7 +57,7 @@ */ global $asVersion; -$asVersion = ""; +$asVersion = "0.1.12-7.4"; // The rrdstep value MUST match that which is used by the perl script. // don't change one without the other. @@ -106,7 +106,7 @@ } array_shift($output); - + foreach ($output as $index => $value) { $retval[calcpr][$index] = $value; } @@ -645,7 +645,7 @@ $opts[] = "COMMENT:\\n"; $opts[] = "COMMENT:amavis-stats v$asVersion "; - $opts[] = "COMMENT:$enddate \\r"; + $opts[] = "COMMENT:". str_replace(":", "\:", $enddate) . "\\r"; asDbg($opts); $ret = rrd_graph("/usr/share/amavis-stats/$img" , $opts, count($opts)); @@ -769,7 +769,7 @@ } */ $opts[] = "COMMENT:amavis-stats v$asVersion "; - $opts[] = "COMMENT:$enddate" . str_replace(":", "\:", $enddate) . " \\r"; + $opts[] = "COMMENT:". str_replace(":", "\:", $enddate) . " \\r"; /* * debugging - graph definitions