X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=sql%2FGenerateGroups.php;h=10be31b5756f64eac6e83c17d36f015fb14b3b05;hb=a892989e7d704601c031a8a1481668ccf8fa2f8b;hp=cdc7748d10e9fa27237ae8e09b1459aceaff81d0;hpb=fa938177202b0ef376e00b6cbe8be3814ef1cd28;p=civicrm-core.git diff --git a/sql/GenerateGroups.php b/sql/GenerateGroups.php index cdc7748d10..10be31b575 100644 --- a/sql/GenerateGroups.php +++ b/sql/GenerateGroups.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2016 | + | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -23,12 +23,12 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2016 + * @copyright CiviCRM LLC (c) 2004-2017 * $Id$ * */ @@ -45,7 +45,7 @@ $config = CRM_Core_Config::singleton(); $prefix = 'Automated Generated Group: '; $query = "DELETE FROM civicrm_group where name like '%{$prefix}%'"; -CRM_Core_DAO::executeQuery($query, CRM_Core_DAO::$_nullArray); +CRM_Core_DAO::executeQuery($query); $numGroups = 100; @@ -66,5 +66,5 @@ for ($i = 1; $i <= $numGroups; $i++) { $group->group_type = $groupType[$t]; $group->save(); -} +}