Skip to content
Snippets Groups Projects
Commit 27b85a41 authored by Stephan Großberndt's avatar Stephan Großberndt Committed by Markus Klein
Browse files

[BUGFIX] Fix PHP Warning on executing Database Analyzer without changes

When running the Database Analyzers "Execute" without checking at least
one checkbox you get a PHP Warning "array_merge(): Argument #2 is not
an array" because instead of returning an array with a message only the
message string was returned.

Fix this by returning the correct variable, which is of type array.

Resolves: #59504
Releases: 6.2
Change-Id: Ifd73d617a4a97f07151fe0e6c6971bcd79c9709c
Reviewed-on: https://review.typo3.org/30670
Reviewed-by: Markus Klein
Tested-by: Markus Klein
parent 90b0b4a3
Branches
Tags
No related merge requests found
......@@ -264,13 +264,13 @@ class ImportantActions extends Action\AbstractAction {
protected function databaseAnalyzerExecute() {
$messages = array();
// Early return in case no updade was selected
// Early return in case no update was selected
if (empty($this->postValues['values'])) {
/** @var $message \TYPO3\CMS\Install\Status\StatusInterface */
$message = $this->objectManager->get('TYPO3\\CMS\\Install\\Status\\WarningStatus');
$message->setTitle('No database changes selected');
$messages[] = $message;
return $message;
return $messages;
}
/** @var \TYPO3\CMS\Install\Service\SqlSchemaMigrationService $schemaMigrationService */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment