Weird things with the PHP Ternary Operator

$amenities = $amenities = AmenityOutput::generate_list_output($object->get_amenities()) ? $amenities : “None available”;

Yes, that apparently is valid PHP.   :sick:

I switched it to this:

$amenities = AmenityOutput::generate_list_output($object->get_amenities());
if (!$amenities)  $amenities = “None available”;

Sometimes people are too clever.