Merge pull request #2006 from civicrm/4.3
[civicrm-core.git] / api / v3 / Event.php
index 04a9ab25ab30a5137484999424be2b23fb4869ff..5721ee1c44b6335dc0ad44c38fa4939fead8dfd2 100644 (file)
@@ -1,9 +1,8 @@
 <?php
-// $Id$
 
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.4                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2013                                |
  +--------------------------------------------------------------------+
@@ -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 )');
   }