diff --git a/class.databaserecord.php b/class.databaserecord.php index 3bfa521..bd1ebd1 100644 --- a/class.databaserecord.php +++ b/class.databaserecord.php @@ -40,7 +40,7 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass $this->ConstructDataset($this->sId); } - public function ConstructDataset($uDataSource, $uCommunityId = 0) + public function ConstructDataset($uDataSource) { $bind_datasets = true; @@ -116,17 +116,6 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass { $this->sFound = false; } - - if(!empty($uCommunityId) && !empty($this->sCommunityId)) - { - $sCommunityId = (is_numeric($uCommunityId)) ? $uCommunityId : 0; - - if($sCommunityId != $this->sCommunity->sId) - { - $classname = get_class($this); - throw new OwnershipException("{$classname} {$this->sId} does not belong to Community {$sCommunityId}."); - } - } } public function BindDataset($type, $dataset)