DataObjects/Core_notify.php
authorEdward <edward@roojs.com>
Wed, 11 Feb 2015 06:19:43 +0000 (14:19 +0800)
committerEdward <edward@roojs.com>
Wed, 11 Feb 2015 06:19:43 +0000 (14:19 +0800)
DataObjects/Core_notify.php

index 8e5f607..1fd7bbd 100644 (file)
@@ -215,22 +215,21 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
             }
         }
         
-        $this->selectAdd("
-            (SELECT
-                    display_name
-            FROM
-                    core_enum
-            WHERE
-                    etype = 'Core.NotifyType'
-                AND
-                    name = core_notify.evtype
-                AND
-                    active = 1
-            ) AS evtype_align
-        ");
-        
-        
-        
+        if(!empty($q['_evtype_align'])){
+            $this->selectAdd("
+                (SELECT
+                        display_name
+                FROM
+                        core_enum
+                WHERE
+                        etype = 'Core.NotifyType'
+                    AND
+                        name = core_notify.evtype
+                    AND
+                        active = 1
+                ) AS evtype_align
+            ");
+        }
         
     }