Which one of these two sentences is correct?
When she said that she loved me
When she said that she loves me
Both are good, depending on the situation.
If you are unsure whether she still loves you, or you know she doesn't anymore, or she was lying(and you know it), you should say loved.
She loves me
is still true, you can say loves.
You can find more infos here, basically:
You do not need to change the tense if the reporting verb is in the present, or if the original statement was about something that is still true.