DataObjects/Core_email.php
[Pman.Core] / DataObjects / Core_email.php
index 929e608..c6a336c 100644 (file)
@@ -85,10 +85,10 @@ class Pman_Core_DataObjects_Core_email extends DB_DataObject
             
         }
         
-        if ($this->to_group != -1) {
+        if ($this->to_group_id != -1) {
                   
             $c = DB_DataObject::factory('core_group_member');            
-            $c->whereAdd("group_id = {$this->to_group}");
+            $c->group_id = $this->to_group_id;
                         
             if (!$c->count()) {
                 if (!empty($request['_ignore_group_count'])) {