KUMASI, Ghana (AP) _ Algeria got the point it needed to advance to the quarterfinals of the African Nations Cup, tying South Africa 1-1 Wednesday night.

Shaun Bartlett gave South Africa the lead in the second minute with his 16th international goal _ tying Phil Masinga's South Africa record _ his fourth of the tournament. Fawzi Moussini tied it in the 53rd minute.

In Wednesday's other game, Congo and Gabon played a scoreless tie at Accra.

South Africa, which already had clinched advancement, won Group B at 2-0-1. Algeria (1-0-2) was second, followed by Congo (0-1-2) and Gabon (0-2-1).

In Sunday's quarterfinals, Cameroon plays Algeria at Accra and South Africa plays Ghana at Kumasi.

In the other half of the bracket, Egypt and Senegal advanced from Group C. The final Group D games are Thursday, with Nigeria and Morocco tied for first with four points each.

In response to crowd violence that erupted after Nigeria's scoreless tie against Republic of Congo, Nigeria's soccer federation said it would double the minimum price of tickets to $2 ``to ensure that there is some order when the Super Eagles play.''

Ivory Coast, eliminated Monday from Group A, took its players to a military base in Abidjan to protect them from irate fans.

``We took this decision for their own security,'' said a sports ministry spokesman who identified himself only as Commandant Gnossakan. ``They will be released tomorrow.''

He said no specific threats had been received, and there had been no reported protests.

When asked if the players were free to leave Wednesday, he said, ``What do you mean by free to go? Why should they want to leave protection?''