X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=sql%2FGenerateGroups.php;h=f8a5e5a01a3672c5d18882fc5c71db65c1bc3aba;hb=15b3f8620f689a2eab5cf3c462aa9b286af04582;hp=4ec68c41f182ea002f2b676c9e9bddf79e044d7f;hpb=a5bf587fe9e824863322c3e16a0a58b4da33fd2a;p=civicrm-core.git diff --git a/sql/GenerateGroups.php b/sql/GenerateGroups.php index 4ec68c41f1..f8a5e5a01a 100644 --- a/sql/GenerateGroups.php +++ b/sql/GenerateGroups.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2015 | + | Copyright CiviCRM LLC (c) 2004-2016 | +--------------------------------------------------------------------+ | 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-2015 + * @copyright CiviCRM LLC (c) 2004-2016 * $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(); -} +}