Skip to content
Snippets Groups Projects
Commit d811b5b1 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Staring work on new upgrade wizard

parent d479cf3f
No related branches found
No related tags found
1 merge request!3New version 4 1
...@@ -132,11 +132,10 @@ class UpdatePidToSiteRoot extends AbstractUpdate { ...@@ -132,11 +132,10 @@ class UpdatePidToSiteRoot extends AbstractUpdate {
/** @var array $result */ /** @var array $result */
foreach ($result as $row) { foreach ($result as $row) {
$siteRootId = BackendService::getSiteRoot($row[1]); $siteRootId = BackendService::getSiteRoot($row[1]);
if ($siteRootId === 0) {
$siteRootId = 1;
}
if ($siteRootId !== (int) $row[1]) { if ($siteRootId !== (int) $row[1]) {
if ($siteRootId === 0) {
$siteRootId = 1;
}
$where = 'uid = ' . $row[0]; $where = 'uid = ' . $row[0];
$databaseConnection->exec_UPDATEquery($table, $where, ['pid' => $siteRootId]); $databaseConnection->exec_UPDATEquery($table, $where, ['pid' => $siteRootId]);
$dbQueries[] = $databaseConnection->debug_lastBuiltQuery; $dbQueries[] = $databaseConnection->debug_lastBuiltQuery;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment