Answer: He had more than one independent variable.
Explanation: It would only be fair, if both plants were in a sunny window, because then, it would be easier to see if the fertilizer actually affected the plants. This is because there is always a chance that the lack of sunlight decreased the number of flowers on the plant, instead of the fertilizer. It is always better to just have one independent variable.