mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-21 22:32:41 +01:00
fix PHP8 array_slice($results, null) which cause diffusion pattern search broken
Test Plan: check diffusion pattern search if working Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25756
This commit is contained in:
parent
e2919211f3
commit
721d5ed64b
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ final class DiffusionSearchQueryConduitAPIMethod
|
|||
throw $ex;
|
||||
}
|
||||
|
||||
$offset = $request->getValue('offset');
|
||||
$offset = $request->getValue('offset', 0);
|
||||
$results = array_slice($results, $offset);
|
||||
|
||||
return $results;
|
||||
|
|
Loading…
Reference in a new issue