We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ff9d6 commit 29b53b4Copy full SHA for 29b53b4
lib/triagens/ArangoDb/Graph.php
@@ -262,13 +262,16 @@ public function set($key, $value)
262
*/
263
private function getSingleUndirectedRelation() {
264
$ed = $this->getEdgeDefinitions();
265
+ if (count($ed) > 0) {
266
+ $a = $ed[0];
267
+ }
268
if (count($ed) > 1 ||
269
(
270
count($ed) === 1 && (
- count($ed[0]->getFromCollections()) > 1 ||
- count($ed[0]->getToCollections()) > 1 ||
- $ed[0]->getFromCollections()[0] !==
271
- $ed[0]->getToCollections()[0]
+ count($a->getFromCollections()) > 1 ||
272
+ count($a->getToCollections()) > 1 ||
273
+ $a->getFromCollections()[0] !==
274
+ $a->getToCollections()[0]
275
276
)
277
0 commit comments