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

SVN:trunk[1119]
This commit is contained in:
Romain Quetiez
2011-03-08 12:23:04 +00:00
parent 49e05acd4b
commit 38a502aa25

View File

@@ -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');
}