On quark matter in a strong magnetic field