From a9c6af5222d6083b68971e0096802d0b3be6dab6 Mon Sep 17 00:00:00 2001 From: Ahmed Saeed Date: Sat, 6 Aug 2022 09:53:08 -0400 Subject: [PATCH] guard against php8.0 ArgumentCountError --- inc/classes/class-imagify-custom-folders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/classes/class-imagify-custom-folders.php b/inc/classes/class-imagify-custom-folders.php index 81a71b7d4..6a33bcd8e 100644 --- a/inc/classes/class-imagify-custom-folders.php +++ b/inc/classes/class-imagify-custom-folders.php @@ -844,7 +844,7 @@ public static function get_files_from_folders( $folders, $args = array() ) { return array(); } - $files_from_db = call_user_func_array( 'array_merge', $files_from_db ); + $files_from_db = call_user_func_array( 'array_merge', array_values( $files_from_db ) ); if ( $already_optimized ) { // Put the files already optimized at the end of the list.