In June , the WHO declared an influenza pandemic for the first time in more than 40 years .