document IsDevelopmentEnvironment defensive behaviour

This commit is contained in:
odain
2021-05-04 08:55:20 +02:00
parent 09b12bd06e
commit 390dc1c945

View File

@@ -2774,6 +2774,8 @@ HTML;
public static function IsDevelopmentEnvironment()
{
if (! defined('ITOP_REVISION')) {
//defensive behaviour: by default we are not in dev environment
//can happen even in production (unattended install for example) or with exotical use of iTop
return false;
}