|
|
@@ -2410,7 +2410,7 @@ class BiAuditPowiazania {
|
|
|
}
|
|
|
|
|
|
if (!isset($this->nodes[$ID][$relation])) {
|
|
|
- $where = $relation ? "and ({$relation} & ref.RELATION_ID) != " . ($this->reverseSearch ? "ref.RELATION_ID" : $relation) : "";
|
|
|
+ $where = $relation ? "and ({$relation} & ref.RELATION_ID) = 0" : "";
|
|
|
$query = "{$this->query} = {$ID} {$where}";
|
|
|
$this->nodes[$ID][$relation] = DB::getPDO()->fetchAll($query);
|
|
|
}
|