Mariusz Muszyński il y a 8 ans
Parent
commit
cc21e570dc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      SE/se-lib/Route/UrlAction/BiAuditGenerate.php

+ 1 - 1
SE/se-lib/Route/UrlAction/BiAuditGenerate.php

@@ -2419,7 +2419,7 @@ class BiAuditPowiazania {
 
 	private static function weightCalc($n) {
 		static $weights = [];
-		if (isset($weights[$n])) {
+		if (!isset($weights[$n])) {
 			$weight = floor(log(($n - 1) / 10) / log(2)) + 1;
 			if ($weight < 1) $weight = 1;
 			$weights[$n] = $weight;