Waiting for a friend to show up before ordering is illegal?
They could have waited outside without incident. I typically do that if I’m waiting on other members of my party to arrive. If the weather’s bad I’ll wait inside, but order a beverage or some kind of appetizer/snack. Common courtesy toward the business.