protect IsDevelopmentEnvironment function from warning

This commit is contained in:
odain
2021-04-16 11:06:05 +02:00
parent 6b899d3f77
commit 52dbf23245

View File

@@ -2754,6 +2754,10 @@ HTML;
*/
public static function IsDevelopmentEnvironment()
{
if (! defined('ITOP_REVISION')) {
return false;
}
return ITOP_REVISION === 'svn';
}