From 529551630d99ede86262b4bff974b769e29d49ab Mon Sep 17 00:00:00 2001 From: Ahmed Saed Date: Wed, 14 Dec 2022 16:21:03 +0200 Subject: [PATCH] Guard against PHP8 ArgumentCountError (#682) --- 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.