PDA

View Full Version : Blank price displays $0 (FIX GIVEN)



sonjay
07-17-2004, 11:56 AM
If the agent leaves the price blank, it is displayed on the browse page as $0. A work-around would be to require the price, but I hate work-arounds.

The fix is to change this line in the common.php file:

$output = $config['money_sign'].$number; // usa, uk - $123,345

to this:

if (!empty($number))
{
$output = $config['money_sign'].$number; // usa, uk - $123,345
}
else
{
$output = ""; // usa, uk - $123,345
}


I've tested this and it seems to work correctly. Someone may have a better way to do it.