Преглед изворни кода

#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 година
родитељ
комит
8dcf47da6e
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      addons/userrights/userrightsprofile.class.inc.php

+ 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')