DataObjects/Core_email.php
authorAlan Knowles <alan@roojs.com>
Fri, 14 Sep 2018 05:09:47 +0000 (13:09 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Sep 2018 05:09:47 +0000 (13:09 +0800)
DataObjects/Core_email.php

index 5d85931..b6289c2 100644 (file)
@@ -63,9 +63,7 @@ class Pman_Core_DataObjects_Core_email extends DB_DataObject
         ");
        
        if (!empty($_REQUEST['_hide_system_emails'])) {
         ");
        
        if (!empty($_REQUEST['_hide_system_emails'])) {
-           $this->whereAdd(" name NOT IN (
-               'EVENT_ERRORS_REPORT'
-           )");
+           $this->whereAddIn("!name", array('EVENT_ERRORS_REPORT'), 'string');
        }
        
     }
        }
        
     }