From 17884cf47d8987c167846e57c35f5ef5859bae3a Mon Sep 17 00:00:00 2001 From: bergware Date: Wed, 18 Jan 2023 22:31:16 +0100 Subject: [PATCH] PHP8 support --- plugins/dynamix/include/FileTree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/include/FileTree.php b/plugins/dynamix/include/FileTree.php index 72e14b637..4f09c0955 100644 --- a/plugins/dynamix/include/FileTree.php +++ b/plugins/dynamix/include/FileTree.php @@ -63,7 +63,7 @@ if (is_low($rootdir) && is_dir($rootdir)) { foreach ($names as $file) if (is_file($rootdir.$file)) { $htmlRel = htmlspecialchars($rootdir.$file); $htmlName = htmlspecialchars($file); - $ext = mb_strtolower(pathinfo($file)['extension']); + $ext = mb_strtolower(pathinfo($file)['extension']??''); foreach ($filters as $filter) if (empty($filter)||$ext==$filter) { if (empty($match)||preg_match("/$match/",$file)) echo "
  • $checkbox$htmlName
  • "; }