X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=sql%2FGenerateReportData.php;h=f5eafbc276d826f4b83f020847513d9dfa72c433;hb=5143b9aafdaf23d140eafbe40e0664fa4606b2ac;hp=2f0d19394742a54745758718466380f412dec412;hpb=a46aac233719dbaa798c970ecc547092b9b29de3;p=civicrm-core.git diff --git a/sql/GenerateReportData.php b/sql/GenerateReportData.php index 2f0d193947..f5eafbc276 100644 --- a/sql/GenerateReportData.php +++ b/sql/GenerateReportData.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. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2016 + * @copyright CiviCRM LLC (c) 2004-2017 * $Id$ * */ @@ -383,7 +383,7 @@ class CRM_GCD { private function _insert(&$dao) { if (self::ADD_TO_DB) { if (!$dao->insert()) { - echo "ERROR INSERT: " . mysql_error() . "\n"; + echo "ERROR INSERT: " . mysqli_error($dao->getConnection()->connection) . "\n"; print_r($dao); exit(1); } @@ -397,7 +397,7 @@ class CRM_GCD { private function _update($dao) { if (self::ADD_TO_DB) { if (!$dao->update()) { - echo "ERROR UPDATE: " . mysql_error() . "\n"; + echo "ERROR UPDATE: " . mysqli_error($dao->getConnection()->connection) . "\n"; print_r($dao); exit(1); }