DataObjects/Core_email.php
authorKH Lau <khlau@roojs.com>
Fri, 2 Feb 2018 07:43:40 +0000 (15:43 +0800)
committerKH Lau <khlau@roojs.com>
Fri, 2 Feb 2018 07:43:40 +0000 (15:43 +0800)
DataObjects/Core_email.php

index 63dab85..8001a80 100644 (file)
@@ -80,10 +80,14 @@ class Pman_Core_DataObjects_Core_email extends DB_DataObject
             $c->whereAdd("group_id = {$this->to_group}");
                         
             if (!$c->find(true)) {
-                if (!empty($request['_ignore_group_count']) && !$request['_ignore_group_count']) {
+                if (empty($request['_ignore_group_count'])) {
+                            $roo->jerr('not found');
+                      }
+                      
+                      if (!$request['_ignore_group_count']) {
                             $roo->jerr('not found');
                       }                                        
-            }
+            } 
         }
     }