Notice: Undefined variable: gid in motor_proximity_class() (line 46 of motor.module