Boeing aircraft are all fitted with fire detectors within the landing gear bay so that if there is a fire (most likely hydraulic fluid spill on hot brake) then the captain can lower the gear.
So in this case the crew should have been alerted to the problem even if it was night