bugfix fix func.php notice