mirror of
https://github.com/flextype/flextype.git
synced 2025-08-17 02:24:05 +02:00
Content: Issue - Return value of Flextype\Component\Arr\Arr::sort() must be of the type array, none returned - fixed
This commit is contained in:
@@ -293,11 +293,13 @@ class Content
|
||||
}
|
||||
|
||||
// Sort and Slice pages if $raw === false
|
||||
if (!$raw) {
|
||||
$pages = Arr::sort($pages, $order_by, $order_type);
|
||||
if (count($pages) > 0) {
|
||||
if (!$raw) {
|
||||
$pages = Arr::sort($pages, $order_by, $order_type);
|
||||
|
||||
if ($offset !== null && $length !== null) {
|
||||
$pages = array_slice($pages, $offset, $length);
|
||||
if ($offset !== null && $length !== null) {
|
||||
$pages = array_slice($pages, $offset, $length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user