Fix PHP notice with 0 difficulty
This commit is contained in:
parent
47c9bda3d2
commit
928385c00c
@ -17,7 +17,7 @@ if ($bitcoin->can_connect() === true) {
|
|||||||
$dDifficulty = $bitcoin->getdifficulty();
|
$dDifficulty = $bitcoin->getdifficulty();
|
||||||
$dNetworkHashrate = $bitcoin->getnetworkhashps();
|
$dNetworkHashrate = $bitcoin->getnetworkhashps();
|
||||||
} else {
|
} else {
|
||||||
$dDifficulty = 0;
|
$dDifficulty = 1;
|
||||||
$dNetworkHashrate = 0;
|
$dNetworkHashrate = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user