dev/translation#26 Fix Notice errors caused by l10n rewriting of query so query outpu...
authorSeamus Lee <seamuslee001@gmail.com>
Sun, 28 Apr 2019 02:14:09 +0000 (12:14 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 28 Apr 2019 02:14:09 +0000 (12:14 +1000)
CRM/Core/DAO.php

index 027dba4a89fd3b0b262541ac9b4ca2980ddc6f5b..ba4c22a6ab3f0b3d7c9c3781e2f5dfece301a71f 100644 (file)
@@ -936,7 +936,7 @@ class CRM_Core_DAO extends DB_DataObject {
 
     if (!array_key_exists($tableName, $show)) {
       $query = "SHOW CREATE TABLE $tableName";
-      $dao = CRM_Core_DAO::executeQuery($query);
+      $dao = CRM_Core_DAO::executeQuery($query, [], TRUE, NULL, FALSE, FALSE);
 
       if (!$dao->fetch()) {
         CRM_Core_Error::fatal();
@@ -963,7 +963,7 @@ class CRM_Core_DAO extends DB_DataObject {
     foreach ($tables as $tableName) {
       if (!array_key_exists($tableName, $show)) {
         $query = "SHOW CREATE TABLE $tableName";
-        $dao = CRM_Core_DAO::executeQuery($query);
+        $dao = CRM_Core_DAO::executeQuery($query, [], TRUE, NULL, FALSE, FALSE);
 
         if (!$dao->fetch()) {
           CRM_Core_Error::fatal();