From 82ee331b951e22580ac460638bf5ee981e839bd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 5 Mar 2021 16:15:01 +0100 Subject: [PATCH] Correctly handle apps without an option directory in `option` dev tools --- .../plugin/AbstractOptionPackageInstallationPlugin.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php index c7a257a45b..6aa2826ad6 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php @@ -1130,6 +1130,11 @@ abstract class AbstractOptionPackageInstallationPlugin extends AbstractXMLPackag // consider all applications for potential object types foreach (ApplicationHandler::getInstance()->getApplications() as $application) { $optionDir = $application->getPackage()->getAbsolutePackageDir() . 'lib/system/option'; + + if (!\is_dir($optionDir)) { + continue; + } + $directoryUtil = DirectoryUtil::getInstance($optionDir); foreach ($directoryUtil->getFileObjects() as $fileObject) { -- 2.20.1