Skip to content

Commit 8904778

Browse files
committed
make api compatible with 5.3
1 parent 29b53b4 commit 8904778

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/triagens/ArangoDb/Graph.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,15 @@ private function getSingleUndirectedRelation() {
264264
$ed = $this->getEdgeDefinitions();
265265
if (count($ed) > 0) {
266266
$a = $ed[0];
267+
$b = $a->getFromCollections();
268+
$c = $a->getToCollections();
267269
}
268270
if (count($ed) > 1 ||
269271
(
270272
count($ed) === 1 && (
271273
count($a->getFromCollections()) > 1 ||
272274
count($a->getToCollections()) > 1 ||
273-
$a->getFromCollections()[0] !==
274-
$a->getToCollections()[0]
275+
$b[0] !== $c[0]
275276

276277
)
277278
)

0 commit comments

Comments
 (0)