Przeglądaj źródła

#165 Issue when installing without selecting any of the ticketing modules

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@605 a333f486-631f-4898-b8df-5754b55c2be0
romainq 15 lat temu
rodzic
commit
8dcf47da6e

+ 3 - 1
addons/userrights/userrightsprofile.class.inc.php

@@ -1521,7 +1521,9 @@ class SetupProfiles
 		{
 			if (!MetaModel::IsValidClass($sClass))
 			{
-				throw new CoreException("Invalid class name '$sClass'");
+				// Could be a class defined in a module that wasn't installed
+				continue;
+				//throw new CoreException("Invalid class name '$sClass'");
 			}
 
 			if ($sAllowedStimuli == 'any')