Permalink
Browse files

Fix variables.

  • Loading branch information...
1 parent 69b701e commit 60fc3c364fac8b92276bbb922437d244e88dfc58 @mikispag committed Aug 18, 2015
Showing with 3 additions and 3 deletions.
  1. +3 −3 frontend/inc/bitiodine.php
@@ -284,7 +284,7 @@ public static function C2A(int $from_cluster, string $address, int $min_time = 0
$response_array = Vector {};
$lines = 1;
- $request = "A2C_$from:$to_cluster";
+ $request = "C2A_$from_cluster:$address";
if (empty($address)) {
write_log(true, $request, "INVALID_ADDRESS");
@@ -533,11 +533,11 @@ public static function cluster_id(string $address): int {
}
if ($response_array->isEmpty() || $response_array[0] == "500 Address not present in any cluster.") {
- write_log(($cached !== false), $request, "NO_CLUSTER");
+ write_log(false, $request, "NO_CLUSTER");
throw new RuntimeException("The address is not part of a cluster.");
}
- write_log(($cached !== false), $request, "OK");
+ write_log(false, $request, "OK");
return intval($response_array[1]);
}

0 comments on commit 60fc3c3

Please sign in to comment.