2 namespace TYPO3\CMS\Install\Updates;
25 protected $title =
'Update backend user setting "startModule"';
40 $description =
'The backend user setting startModule is changed for the extension aboutmodules. Update all backend users that use ext:aboutmodules as startModule.';
52 public function performUpdate(array &$databaseQueries, &$customMessages)
55 $backendUsers = $db->exec_SELECTgetRows(
'uid,uc',
'be_users',
'1=1');
56 if (!empty($backendUsers)) {
57 foreach ($backendUsers as $backendUser) {
58 if ($backendUser[
'uc'] !== null) {
59 $userConfig = unserialize($backendUser[
'uc']);
60 if ($userConfig[
'startModule'] ===
'help_aboutmodules') {
61 $userConfig[
'startModule'] =
'help_AboutmodulesAboutmodules';
62 $db->exec_UPDATEquery(
64 'uid=' . (
int)$backendUser[
'uid'],
66 'uc' => serialize($userConfig),
69 $databaseQueries[] = $db->debug_lastBuiltQuery;