X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_person_signup.php;h=529c2b1c49131fb2e1beb3291235e4acf1ceed49;hp=bb6e01012b19682cc73ec2c46785d35f2d985006;hb=5d4ac076dc4f620fbb91944eead3e0af66216a03;hpb=5e37dffa55c8cb91041b54bb926b52bb2fc7ce38 diff --git a/DataObjects/Core_person_signup.php b/DataObjects/Core_person_signup.php index bb6e0101..529c2b1c 100644 --- a/DataObjects/Core_person_signup.php +++ b/DataObjects/Core_person_signup.php @@ -3,7 +3,7 @@ /** * Table Definition for Person */ -require_once 'DB/DataObject.php'; +class_exists('DB_DataObject') ? '' : require_once 'DB/DataObject.php'; class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject { @@ -40,12 +40,7 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject $old = clone($this); // this shold not really happen... if($target->get('email', $this->email)){ - - $this->person_id = $target->id; - $this->person_table = $target->tableName(); - $this->update($old); - - return $target; + return false; } $target->setFrom($this->toArray()); @@ -65,14 +60,14 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject function sendVerification($template, $roo) { - $content = array( 'template' => $template, 'person' => $this, 'serverName' => $_SERVER['SERVER_NAME'], 'baseURL' => $roo->baseURL ); - + + $sent = DB_DataObject::factory('core_email')->send($content); if(!is_object($sent)){