Both versions are correct. In my opinion, the second one expresses slightly more doubt or disbelief.
We were told the elephants are protected. -- We are not questioning this.
The elephants are protected, so we were told. -- We have not verified this as true.
The elephants are protected, or so we were told. -- We are unsure whether this is true.