Преглед на файлове

#271 Internal - Removed a workaround made unnecessary with fix [1108]

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1119 a333f486-631f-4898-b8df-5754b55c2be0
romainq преди 14 години
родител
ревизия
8bac23d080
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      core/userrights.class.inc.php

+ 1 - 2
core/userrights.class.inc.php

@@ -160,8 +160,7 @@ abstract class User extends cmdbAbstractObject
 		}
 		// Check that this user has at least one profile assigned
 		$oSet = $this->Get('profile_list');
-		$aProfileLinks = $oSet->ToArray();
-		if (count($aProfileLinks) == 0)
+		if ($oSet->Count() == 0)
 		{
 			$this->m_aCheckIssues[] = Dict::Format('Class:User/Error:AtLeastOneProfileIsNeeded');
 		}