Some evidence suggests that certain people may have a genetic predisposition to nail fungus infections. Recurrent cases may also occur in people who have weakened immune systems. They can also be a sign of diabetes, due to compromised blood flow to the feet.