Merge pull request #1226 from kurund/CRM-11137
[civicrm-core.git] / api / v3 / Event.php
index 04a9ab25ab30a5137484999424be2b23fb4869ff..8158765f26f5d5b1974f112d1f728823da4034fd 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-// $Id$
 
 /*
  +--------------------------------------------------------------------+
@@ -143,7 +142,7 @@ function civicrm_api3_event_get($params) {
   if (CRM_Utils_Array::value('is_template', $params)) {
     $eventDAO->whereAdd( '( is_template = 1 )' );
   }
-  else {
+  elseif(empty($eventDAO->id)){
     $eventDAO->whereAdd('( is_template IS NULL ) OR ( is_template = 0 )');
   }