A dog is being blamed for knocking an idling pickup truck into gear, which caused it to run into a man in West York, police said.

It happened about 11:25 a.m. Tuesday at Hoke Mills, 150 S. Seward St. The man, a Hoke Mills employee whose name was not released, initially was knocked unconscious, according to West York Police.

A driver left the truck idling and left his dog inside, police said. The dog bumped the gear shift, putting the truck in gear.

An employee saw the truck drifting toward a parked vehicle and tried in vain to stop it, police said.

It sideswiped the parked vehicle, pinching the employee between the two vehicles, police said.

He was temporarily knocked unconscious after his head hit the ground, police said. He was taken to York Hospital for treatment.