X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=sql%2FGenerateReportData.php;h=f5eafbc276d826f4b83f020847513d9dfa72c433;hb=0d86b042e5c1a8d447b9495f06f653eebe1ed062;hp=2f0d19394742a54745758718466380f412dec412;hpb=ef534103ef408bec8dea63bc49dea15dd867d23a;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); }