diff --git a/web/yaamp/commands/PayoutCommand.php b/web/yaamp/commands/PayoutCommand.php
index 19fb120..c5e2d04 100644
--- a/web/yaamp/commands/PayoutCommand.php
+++ b/web/yaamp/commands/PayoutCommand.php
@@ -109,7 +109,7 @@ class PayoutCommand extends CConsoleCommand
'order'=>'time DESC',
));
- if (empty($payouts))
+ if (empty($payouts) || empty($ids))
return 0;
$remote = new Bitcoin($coin->rpcuser, $coin->rpcpasswd, $coin->rpchost, $coin->rpcport);
diff --git a/web/yaamp/modules/site/coin_results.php b/web/yaamp/modules/site/coin_results.php
index dbfe6aa..0ab7512 100644
--- a/web/yaamp/modules/site/coin_results.php
+++ b/web/yaamp/modules/site/coin_results.php
@@ -11,7 +11,6 @@ $reserved1 = dboscalar("select sum(balance) from accounts where coinid=$coin->id
$reserved2 = dboscalar("select sum(amount*price) from earnings
where status!=2 and userid in (select id from accounts where coinid=$coin->id)");
-$reserved = bitcoinvaluetoa(($reserved1 + $reserved2) * 2);
$reserved1 = altcoinvaluetoa($reserved1);
$reserved2 = bitcoinvaluetoa($reserved2);
$balance = altcoinvaluetoa($coin->balance);
@@ -19,8 +18,10 @@ $balance = altcoinvaluetoa($coin->balance);
$owed = dboscalar("select sum(amount) from earnings where status!=2 and coinid=$coin->id");
$owed_btc = $owed? bitcoinvaluetoa($owed*$coin->price): '';
$owed = $owed? altcoinvaluetoa($owed): '';
+$symbol = $coin->symbol;
+if (!empty($coin->officialsymbol)) $symbol = $coin->officialsymbol;
-echo "cleared $reserved1, earnings $reserved2, reserved $reserved, balance $balance, owed $owed, owned btc $owed_btc
";
+echo "Earnings $reserved2 BTC, balance (db) $balance $symbol, owed $owed $symbol ($owed_btc BTC), $reserved1 $symbol cleared
";
//////////////////////////////////////////////////////////////////////////////////////