Skip to content

Commit 29b53b4

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

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/triagens/ArangoDb/Graph.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,16 @@ public function set($key, $value)
262262
*/
263263
private function getSingleUndirectedRelation() {
264264
$ed = $this->getEdgeDefinitions();
265+
if (count($ed) > 0) {
266+
$a = $ed[0];
267+
}
265268
if (count($ed) > 1 ||
266269
(
267270
count($ed) === 1 && (
268-
count($ed[0]->getFromCollections()) > 1 ||
269-
count($ed[0]->getToCollections()) > 1 ||
270-
$ed[0]->getFromCollections()[0] !==
271-
$ed[0]->getToCollections()[0]
271+
count($a->getFromCollections()) > 1 ||
272+
count($a->getToCollections()) > 1 ||
273+
$a->getFromCollections()[0] !==
274+
$a->getToCollections()[0]
272275

273276
)
274277
)

0 commit comments

Comments
 (0)