Обновить pointsystemlib.php
This commit is contained in:
parent
bbe1dab25c
commit
98b760dfc4
@ -53,8 +53,8 @@ function paypoint($byname, $toname, $point, $reason="") {
|
|||||||
if (($db["points"][$byname]>=$point and $point>0) and isset($db["points"][$byname], $db["points"][$toname])) {
|
if (($db["points"][$byname]>=$point and $point>0) and isset($db["points"][$byname], $db["points"][$toname])) {
|
||||||
$db["points"][$byname] -= $point;
|
$db["points"][$byname] -= $point;
|
||||||
$db["points"][$toname] += $point;
|
$db["points"][$toname] += $point;
|
||||||
$db["logs"][$byname][] = date(DATE_RFC822) . ": Pay to" . $toname . ": " . $reason;
|
$db["logs"][$byname][] = date(DATE_RFC822) . ": Pay to " . $toname . ": " . $reason;
|
||||||
$db["logs"][$toname][] = date(DATE_RFC822) . ": Pay from" . $byname . ": " . $reason;
|
$db["logs"][$toname][] = date(DATE_RFC822) . ": Pay from " . $byname . ": " . $reason;
|
||||||
savedb($db);
|
savedb($db);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user