From 59cd489e7294200ceab5bb5da180e5c338dc9882 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Tue, 16 May 2023 14:06:01 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06252=20-=20Make=20designer=20itop=203.1?= =?UTF-8?q?=20compatible=20-=20Fix=20deprecated=20calls=20of=20opendir()?= =?UTF-8?q?=20with=20null=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup/modelfactory.class.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index 556df5534..acea63e85 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -176,6 +176,10 @@ class MFModule $this->sAutoSelect = 'false'; $this->aFilesToInclude = array('addons' => array(), 'business' => array(), 'webservices' => array(),); + if (is_null($sRootDir)) { + return; + } + // Scan the module's root directory to find the datamodel(*).xml files if ($hDir = opendir($sRootDir)) {