Fix warning

This commit is contained in:
Laurent Destailleur
2023-04-15 03:16:53 +02:00
parent f02ff3f774
commit b55271dedb
20 changed files with 43 additions and 41 deletions

View File

@@ -86,7 +86,7 @@ class KnowledgeRecordTest extends PHPUnit\Framework\TestCase
global $conf, $user, $langs, $db;
$db->begin(); // This is to have all actions inside a transaction even if test launched without suite.
if (empty($conf->knowledgemanagement->enabled)) {
if (!isModEnabled('knowledgemanagement')) {
print __METHOD__." module knowledgemanagement must be enabled.\n"; die(1);
}
}