Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(upgrade) fix fetch by column (#11908)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-launois committed Sep 30, 2022
1 parent 6ecf37d commit f9efb6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/install/php/Update-22.04.0-beta.1.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ function migrateBrokerConfigOutputsToUnifiedSql(CentreonDB $pearDB): void
if (empty($unifiedSqlType)) {
throw new \Exception("Cannot find 'unified_sql' in cb_type table");
}
$unifiedSqlTypeId = (int) $unifiedSqlType['cb_type_id'];
$unifiedSqlTypeId = (int) $unifiedSqlType;

foreach ($configIds as $configId) {
// Find next config group id
Expand All @@ -527,7 +527,7 @@ function migrateBrokerConfigOutputsToUnifiedSql(CentreonDB $pearDB): void
if (empty($maxConfigGroupId)) {
throw new \Exception("Cannot find max config group id in cfg_centreonbroker_info table");
}
$nextConfigGroupId = (int) $maxConfigGroupId['max_config_group_id'] + 1;
$nextConfigGroupId = (int) $maxConfigGroupId + 1;
$blockIdsQueryBinds = [];
foreach ($blockIds as $key => $value) {
$blockIdsQueryBinds[':block_id_' . $key] = $value;
Expand Down

0 comments on commit f9efb6d

Please sign in to comment.