Fix setup

SVN:trunk[5692]
This commit is contained in:
Eric Espié
2018-04-18 14:30:33 +00:00
parent c719fbf7fc
commit 182e644a33
2 changed files with 2 additions and 2 deletions

View File

@@ -1894,7 +1894,7 @@ class utils
* (re)installation of iTop (especially during development).
* @return string
*/
public function GetCacheBusterTimestamp()
public static function GetCacheBusterTimestamp()
{
if(!defined('COMPILATION_TIMESTAMP'))
{

View File

@@ -299,7 +299,7 @@ abstract class User extends cmdbAbstractObject
{
$oUser = UserRights::GetUserObject();
$oAddon = UserRights::GetModuleInstance();
if (method_exists($oAddon, 'GetUserOrgs'))
if (!is_null($oUser) && method_exists($oAddon, 'GetUserOrgs'))
{
$aOrgs = $oAddon->GetUserOrgs($oUser, '');
if (count($aOrgs) > 0)