N°6252 - Make designer itop 3.1 compatible - Fix deprecated calls of opendir() with null value

This commit is contained in:
Eric Espie
2023-05-16 14:06:01 +02:00
parent 4b9b0a91a9
commit 59cd489e72

View File

@@ -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))
{