mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
protect IsDevelopmentEnvironment function from warning
This commit is contained in:
@@ -2754,6 +2754,10 @@ HTML;
|
||||
*/
|
||||
public static function IsDevelopmentEnvironment()
|
||||
{
|
||||
if (! defined('ITOP_REVISION')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return ITOP_REVISION === 'svn';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user