fix #8131 - chinese translations
[Pman.Core] / DataObjects / Core_person_signup.php
index c32a79e..a59f67d 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * Table Definition for Person
  */
 /**
  * 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 
 {
 
 class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject 
 {
@@ -40,7 +40,6 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
         $old = clone($this);
         // this shold not really happen...
         if($target->get('email', $this->email)){
         $old = clone($this);
         // this shold not really happen...
         if($target->get('email', $this->email)){
-            
             return false;
         }
         
             return false;
         }
         
@@ -61,14 +60,13 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
     
     function sendVerification($template, $roo)
     {
     
     function sendVerification($template, $roo)
     {
-        
         $content = array(
             'template'      => $template,
             'person'        => $this,
             'serverName'    => $_SERVER['SERVER_NAME'],
             'baseURL'       => $roo->baseURL
         );
         $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)){
         $sent = DB_DataObject::factory('core_email')->send($content);
         
         if(!is_object($sent)){