If the brakes work fine then check the master cylinder to see if it is filled all the way. There is a float inside the master cylinder to indicate when the fluid is low. If you are a little low the float could cause the light to come on when you make a turn, when the fluid goes to one side. After the turn the fluid will even out again causing the light to go out.
Hope this helps. BYM