Skip to content

Commit 3385ee4

Browse files
committed
make api compatible with 5.3
1 parent 54a5276 commit 3385ee4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/triagens/ArangoDb/GraphHandler.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2506,7 +2506,8 @@ public function getRadius($graph,
25062506
$statement->bind('options', $options);
25072507

25082508
$statement->setQuery($aql);
2509-
return $statement->execute()->getAll()[0];
2509+
$a = $statement->execute()->getAll();
2510+
return $a[0];
25102511
}
25112512

25122513
/**
@@ -2562,7 +2563,8 @@ public function getDiameter($graph,
25622563
$statement->bind('options', $options);
25632564

25642565
$statement->setQuery($aql);
2565-
return $statement->execute()->getAll()[0];
2566+
$a = $statement->execute()->getAll();
2567+
return $a[0];
25662568
}
25672569

25682570
}

0 commit comments

Comments
 (0)