Ciao qualcuno saprebbe correggere questo errore:

Notice: Use of undefined constant calcpr - assumed 'calcpr' in /usr/share/amavis-stats/amavis-stats.php on line 115
amavis-stats::error: rrd_graph(): 1

Codice PHP:
    function rrd_graph ($img$opts$count) {
        global 
$rrd_error_val;

        unset(
$output);

        
$cmd "rrdtool graph $img '"implode("' \\\n'",$opts) . "'" .
       
//        " 2>&1";
        //  $cmd = "/usr/local/rrdtool/bin/rrdtool graph $img '".
        //  implode("' \\\n'",$opts) . "'" .
          
" 2>&1";

        
asDbg($cmd1);
        
$out exec($cmd$output$rrd_error_val);

        if (
$rrd_error_val) {
            if (!
is_numeric($rrd_error_val)) {
                
$rrd_error_val $output[0];
            }
            return 
false;
        }

        
asDbg($output);

        if (
preg_match("/(\d+)x(\d+)/"$output[0], $matches)) {
            
$retval["xsize"] = $matches[1];
            
$retval["ysize"] = $matches[2];
        } else {
            
$rrd_error_val $output[0];
            return 
false;
        }

        
array_shift($output);

        foreach (
$output as $index => $value) {
            
$retval[calcpr][$index] = $value;            //  [COLOR=orangered] linea 115 qui[/COLOR] 
        
}
        return 
$retval;
    }