template.php - fix php warning