[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omaha.pm] Using ||



 
Before

>   $room_type = $o_RS->determine_room_type($req_room_type);
>   if (!$room_type) {
>     $room_type = $o_RS->determine_room_type();
>   }

After

$room_type = 
   $o_RS->determine_room_type($req_room_type) || 
   $o_RS->determine_room_type();

(As long as 0 isn't a valid value. -grin-)

j