mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 01:59:19 +01:00
fix PHP 8.0 TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given
This commit is contained in:
parent
e1ac07a766
commit
838f42e87f
@ -1909,6 +1909,10 @@ class Vfs extends Vfs\Base
|
||||
*/
|
||||
static public function copy_files(array $src, $dst, &$errs=null, array &$copied=null)
|
||||
{
|
||||
if (!is_array($copied))
|
||||
{
|
||||
$copied = [];
|
||||
}
|
||||
if (self::is_dir($dst))
|
||||
{
|
||||
foreach ($src as $file)
|
||||
|
Loading…
Reference in New Issue
Block a user