snapin.class.php (fogproject-1.5.7) | : | snapin.class.php (fogproject-1.5.8) | ||
---|---|---|---|---|
skipping to change at line 370 | skipping to change at line 370 | |||
* @param int $groupID the group id to check | * @param int $groupID the group id to check | |||
* | * | |||
* @return bool | * @return bool | |||
*/ | */ | |||
public function getPrimaryGroup($groupID) | public function getPrimaryGroup($groupID) | |||
{ | { | |||
$primaryCount = self::getClass('SnapinGroupAssociationManager') | $primaryCount = self::getClass('SnapinGroupAssociationManager') | |||
->count( | ->count( | |||
array( | array( | |||
'snapinID' => $this->get('id'), | 'snapinID' => $this->get('id'), | |||
'prmary' => 1, | 'primary' => 1, | |||
) | ) | |||
); | ); | |||
if ($primaryCount < 1) { | if ($primaryCount < 1) { | |||
$primaryCount = self::getClass('SnapinGroupAssociationManager') | $primaryCount = self::getClass('SnapinGroupAssociationManager') | |||
->count( | ->count( | |||
array('snapinID' => $this->get('id')) | array('snapinID' => $this->get('id')) | |||
); | ); | |||
} | } | |||
if ($primaryCount < 1) { | if ($primaryCount < 1) { | |||
$groupid = self::getSubObjectIDs('StorageGroup'); | $groupid = self::getSubObjectIDs('StorageGroup'); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |