From 8c97a678adb4c3108a94b8d1b5ebb11660d7bf09 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 11 Feb 2015 14:19:43 +0800 Subject: [PATCH] DataObjects/Core_notify.php --- DataObjects/Core_notify.php | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index 8e5f6073..1fd7bbd0 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -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 + "); + } } -- 2.39.2