Mariusz Muszyński 8 سال پیش
والد
کامیت
4be5d22933
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      SE/se-lib/Route/UrlAction/BiAuditGenerate.php

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

@@ -2292,7 +2292,7 @@ class BiAuditPowiazania {
 		$resultSrc = DB::getPDO()->fetchAll($query);
 		$resultSrc = DB::getPDO()->fetchAll($query);
 		if (!$resultSrc) self::throwException("Błąd danych - nie zdefinowano żadnego początkowego obiektu");
 		if (!$resultSrc) self::throwException("Błąd danych - nie zdefinowano żadnego początkowego obiektu");
 
 
-		if (count($resultSrc) >= count($resultDst)) {
+		if (count($resultSrc) <= count($resultDst)) {
 			$result = $resultSrc;
 			$result = $resultSrc;
 			$this->endNodes = array_map('reset', $resultDst);
 			$this->endNodes = array_map('reset', $resultDst);
 			$this->query = "select ref.ID2 as ID, RELATION_ID from BI_audit_ALL_ref ref where ref.ID1";
 			$this->query = "select ref.ID2 as ID, RELATION_ID from BI_audit_ALL_ref ref where ref.ID1";