1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52: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:
jesse 2024-07-30 09:10:45 +08:00
parent e2919211f3
commit 721d5ed64b

View file

@ -40,7 +40,7 @@ final class DiffusionSearchQueryConduitAPIMethod
throw $ex; throw $ex;
} }
$offset = $request->getValue('offset'); $offset = $request->getValue('offset', 0);
$results = array_slice($results, $offset); $results = array_slice($results, $offset);
return $results; return $results;