X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FLocBlock.php;h=cb29a2050eb064c9b75631c310232295ff84ceb3;hb=192e8d1a947814993aa699e47ac1669ac17b1045;hp=17270805238c2e49eaeb4cffb33d709e155a46f7;hpb=3587381cb6fe49cb6628b9348906a6ad3043bec9;p=civicrm-core.git diff --git a/api/v3/LocBlock.php b/api/v3/LocBlock.php index 1727080523..cb29a2050e 100644 --- a/api/v3/LocBlock.php +++ b/api/v3/LocBlock.php @@ -2,9 +2,9 @@ /* /* +--------------------------------------------------------------------+ - | CiviCRM version 4.3 | + | CiviCRM version 4.5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2013 | + | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -101,6 +101,7 @@ function civicrm_api3_loc_block_get($params) { // If a return param has been set then fetch the appropriate fk objects // This is a helper because api chaining does not work with a key like 'email_2' if (!empty($options['return'])) { + unset($params['return']); $values = array(); $items = array('address', 'email', 'phone', 'im'); $returnAll = !empty($options['return']['all']);