Pārlūkot izejas kodu

Support previous datamodels (profiles à la mode 1.2.x)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2167 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 gadi atpakaļ
vecāks
revīzija
ce94e14733
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      setup/compiler.class.inc.php

+ 3 - 3
setup/compiler.class.inc.php

@@ -69,12 +69,12 @@ class MFCompiler
 
 		// Determine the target module (exactly one!) for USER RIGHTS
 		//
+		$sUserRightsModule = '';
 		$oUserRightsNode = $this->oFactory->GetNodes('user_rights')->item(0);
-		if (!$oUserRightsNode)
+		if ($oUserRightsNode)
 		{
-			throw new Exception("Missing configuration for user rights");
+			$sUserRightsModule = $oUserRightsNode->getAttribute('_created_in');
 		}
-		$sUserRightsModule = $oUserRightsNode->getAttribute('_created_in');
 
 		// List root classes
 		//