Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

Commit

Permalink
Fixed money parameter conditions in auction route
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias committed Sep 23, 2015
1 parent 78d56dd commit f13fb4f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions app/Http/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@
$startbid = substr($startbid, 0, -4) . " gold " . substr($startbid, -4, 2) . " silver " . substr($startbid, -2) . " copper";

if ($buyoutprice == "0")
$buyoutprice = "00 gold 00 silver 00 copper";
$buyoutprice = "";
else
$buyoutprice = substr($buyoutprice, 0, -4) . " gold " . substr($buyoutprice, -4, 2) . " silver " . substr($buyoutprice, -2) . " copper";

Expand All @@ -1327,19 +1327,24 @@
$startbid = "00 gold " . substr($startbid, -4, 2) . " silver " . substr($startbid, -2) . " copper";

if ($buyoutprice == "0")
$buyoutprice = "00 gold 00 silver 00 copper";
$buyoutprice = "";
else
$buyoutprice = "00 gold " . substr($buyoutprice, -4, 2) . " silver " . substr($buyoutprice, -2) . " copper";
if ($lastbid == "0")
$lastbid = "00 gold 00 silver 00 copper";
else

if ($lastbid != "0")
$lastbid = "00 gold " . substr($lastbid, -4, 2) . " silver " . substr($lastbid, -2) . " copper";
}
else
{
$startbid = "00 gold 00 silver " . substr($startbid, -2) . " copper";
$buyoutprice = "00 gold 00 silver " . substr($buyoutprice, -2) . " copper";
$lastbid = "00 gold 00 silver " . substr($lastbid, -2) . " copper";

if ($buyoutprice == "0")
$buyoutprice = "";
else
$buyoutprice = "00 gold 00 silver " . substr($buyoutprice, -2) . " copper";

if ($lastbid != "0")
$lastbid = "00 gold 00 silver " . substr($lastbid, -2) . " copper";
}

$result[$i]->{'buyoutprice'} = $buyoutprice;
Expand Down

0 comments on commit f13fb4f

Please sign in to comment.