Merge pull request #455 from eileenmcnaughton/4.3
[civicrm-core.git] / api / v3 / Event.php
index 04a9ab25ab30a5137484999424be2b23fb4869ff..569456efe103c42e64a37ffd278ebaa0efadc8ab 100644 (file)
@@ -143,7 +143,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 )');
   }