mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
fix PHP8 array_slice($results, null) which cause diffusion locate file broken
Test Plan: check diffusion locate file if works Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: avivey, aklapper, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25750
This commit is contained in:
parent
6d5cde8e1c
commit
f75b66b27a
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ final class DiffusionQueryPathsConduitAPIMethod
|
||||||
|
|
||||||
protected function getResult(ConduitAPIRequest $request) {
|
protected function getResult(ConduitAPIRequest $request) {
|
||||||
$results = parent::getResult($request);
|
$results = parent::getResult($request);
|
||||||
$offset = $request->getValue('offset');
|
$offset = $request->getValue('offset', 0);
|
||||||
return array_slice($results, $offset);
|
return array_slice($results, $offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue