fix undefined index mincals.inc.php