DataObjects/Core_email.php
authorKH Lau <khlau@roojs.com>
Fri, 2 Feb 2018 06:53:32 +0000 (14:53 +0800)
committerKH Lau <khlau@roojs.com>
Fri, 2 Feb 2018 06:53:32 +0000 (14:53 +0800)
DataObjects/Core_email.php

index 8fd7639..72b4075 100644 (file)
@@ -73,6 +73,17 @@ class Pman_Core_DataObjects_Core_email extends DB_DataObject
             $this->makeCopy($roo);
             
         }
+        
+        if ($this->to_group != -1) {
+            $c = DB_DataObject::factory('core_group_member');
+            $c->setFrom(array(
+                'groud_id' => $this->to_group
+            ));
+            print_r($c->count());exit;
+            if (!$c->find(true)) {
+                
+            }
+        }
     }
     
     function makeCopy($roo)