Yes the official is correct. This is a multipe foul when two players foul a shooter in the actof shooting at the exact time. Each player is charged with a personal foul and the A1 the shooter gets one foul shot for each foul.
If the player makes or misses the shot, the penalty is the same. One foul shot for each foul at the same time on a player in the act of shooting.