NEW YORK — Dillard’s Inc. on Monday posted a second-quarter gain against last year’s loss in the period, boosted in part by some benefits in the quarter that offset a litigation charge in connection with certain pension plan participants.

For the period ended July 29, income was $15.7 million, or 20 cents a share, against a loss of $12.3 million, or 15 cents, a year ago. Total revenues were up by 1.2 percent to $1.75 billion from $1.73 billion, which included essentially flat sales at $1.69 billion.

For the six months, income was $77.1 million, or 97 cents, compared with $25.7 million, or 31 cents, last year. Revenues rose 1.7 percent to $3.63 billion from $3.57 billion, which included a sales gain of .9 percent to $3.53 billion from $3.49 billion.

Four stores that were damaged by Hurricanes Katrina and Rita a year ago remained closed.

For complete coverage, see tomorrow’s issue of WWD.