mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-30 14:40:34 +02:00
fix PHP 8.0 "TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given" when creating a new directory
This commit is contained in:
@ -684,7 +684,7 @@ class filemanager_ui
|
||||
*/
|
||||
static public function action($action,$selected,$dir=null,&$errs=null,&$files=null,&$dirs=null)
|
||||
{
|
||||
if (!count($selected))
|
||||
if (!count((array)$selected))
|
||||
{
|
||||
return lang('You need to select some files first!');
|
||||
}
|
||||
|
Reference in New Issue
Block a user