***** NOT A TEACHER *****
Hello, Tkacka:
I have good news and bad news for you.
The bad news is that there appear to be several "correct" ways to interpret your sentence -- depending on which book you are using.
The good news is that one huge book respected by scholars throughout the world * agrees with you that "her" is an indirect object. Let me cite a few of its points:
1. "I told/advised/persuaded Mark to see a doctor."
a. The book says that "the noun phrase [Mark] is an indirect object, ... the indirect object refers to the addressee ["Mark"]."
b. The book then gives this passive sentence [as "proof"?]: Mark was told/advised/ persuaded to see a doctor."
c. The book reminds us that we cannot say "To see a doctor was told [/persuaded] Mark."
As I said, the analysis depends on the book that you use.
I, of course, shall keep my opinion to myself, and I shall never gainsay anything that a teacher tells you. I just thought, however, that it would OK to let you know that there are several ways to parse your sentence.
*Quirk, Greenbaum, Leech, Svartvik, A Comprehensive Grammar of the English Language (1985 edition), page 1215.
P.S. To make the situation more fun, look at this sentence from a reputable book:
"The dean requested me to report at once [to his office?]." (My emphasis)
a. The two scholars claim that "me to report at once" is the direct object of the verb (and "me" is the subject of the infinitive).
b. I guess that the "huge" book would disagree, for it says that "request" is to be analyzed in the same way that "persuade" is.
Pence and Emery, A Grammar of Present-Day English (1947 and 1963), page 70.