From: Edward Date: Wed, 11 Feb 2015 06:19:43 +0000 (+0800) Subject: DataObjects/Core_notify.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=8c97a678adb4c3108a94b8d1b5ebb11660d7bf09 DataObjects/Core_notify.php --- 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 + "); + } }