Shares of Jack in the Box Inc. fell 7 percent over two days, despite the San Diego-based restaurant chain reporting better-than-expected third quarter earnings late Aug. 5.

Shares of JACK, which closed at $97.14 on Wednesday, finished the week at Friday’s closing bell at $90.21.

The stumble came despite the corporation posting better-than-expected earnings per share (it posted 76 cents, excluding one-time items, while analysts expected 73 cents). The corporation also increased its forecast for operating earnings per share to a range of $2.97 to $3.03 (up from $2.90 to $3.00).

Jack in the Box was following the decline in other restaurant stocks, said Bob Derrington, an analyst with Wunderlich Securities, noting that macroeconomic issues are leading investors to bet on weaker consumer spending ahead. In an Aug. 6 email, Derrington said that it was “very ugly” in consumer restaurant stocks.

Jack in the Box slightly lowered its forecast for its Qdoba Mexican food chain in its Aug. 5 earnings announcement.

For the whole of fiscal 2015, the corporation forecast an 8 percent to 8.5 percent increase in same store sales at Qdoba, and 40-45 new Qdoba restaurants.

Three months ago, the corporation held out the possibility that Qdoba could increase same store sales by 7.5 percent to 9.5 percent, and forecast 50-60 new Qdoba restaurants.

For the third quarter ending July 5, Jack in the Box reported net earnings of $26.8 million, or 71 cents per diluted share, on revenues of $359.5 million. In the year-ago quarter, the corporation reported net earnings of $24.7 million, or 61 cents per share, on revenues of $348.5 million.

Derrington, the analyst, rates the stock as a buy, with a price target of $110.00.