replace oDb->getAssoc by oDb->getRow

getAssoc was deprecated in OXID 4.10 and was removed in OXID 6.
This commit is contained in:
Marten Seemann 2020-03-14 18:19:19 +07:00 committed by Marat
parent fb3496187b
commit ede6af99f9
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ class blatm_events extends oxI18n
{
/** @var oxLegacyDb $oDb */
$oDb = oxDb::getDB();
$aColumns = $oDb->getAssoc("SHOW COLUMNS FROM oxorder");
$aColumns = $oDb->getRow("SHOW COLUMNS FROM oxorder");
// rename BLAREFERRER column -> BLAHTTPREF or create new
if( array_key_exists( "BLAREFERRER", $aColumns )) $oDb->Execute("ALTER TABLE `oxorder` CHANGE `BLAREFERRER` `BLAHTTPREF` TEXT NOT NULL COMMENT 'bla/tag-manager http ref'");

View File

@ -29,7 +29,7 @@ class blatracking_events extends oxI18n {
{
/** @var oxLegacyDb $oDb */
$oDb = oxDb::getDB();
$aColumns = $oDb->getAssoc("SHOW COLUMNS FROM oxorder");
$aColumns = $oDb->getRow("SHOW COLUMNS FROM oxorder");
// rename BLAREFERRER column or create new
if( array_key_exists( "BLAREFERRER", $aColumns )) $oDb->Execute("ALTER TABLE `oxorder` CHANGE `BLAREFERRER` `BLAHTTPREF` TEXT NOT NULL COMMENT 'bla-tracking http ref'");