A model for ionic solutions with an attractive short-range pair interaction between the ions is presented. The short-range interaction is accounted for by adding a quadratic nonlocal term to the Poisson-Boltzmann free energy. The model is used to study solvent effects in a planar electric double layer. The counterion density is found to increase near the charged surface, as compared with the Poisson-Boltzmann theory, and to decrease at larger distances. The ion density profile is studied analytically in the case where the ion distribution near the plate is dominated only by counterions. Further away from the plate the density distribution can be described using a Poisson-Boltzmann theory, with an effective surface charge that is smaller than the actual one.