Update DolibarrModules.class.php

This commit is contained in:
Laurent Destailleur 2021-08-17 19:28:26 +02:00 committed by GitHub
parent 98a2c35ab5
commit f0f8210918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1265,9 +1265,10 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
//$titre = $this->boxes[$key][0];
if (empty($this->boxes[$key]['file'])) {
$file = isset($this->boxes[$key][1]) ? $this->boxes[$key][1] : ''; // For backward compatibility
} else
} else {
$file = $this->boxes[$key]['file'];
}
//$note = $this->boxes[$key][2];
// TODO If the box is also included by another module and the other module is still on, we should not remove it.