Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

count() mit null als Argument #31

Closed
fiedsch opened this issue Mar 24, 2022 · 1 comment
Closed

count() mit null als Argument #31

fiedsch opened this issue Mar 24, 2022 · 1 comment

Comments

@fiedsch
Copy link

fiedsch commented Mar 24, 2022

Zu https://community.contao.org/de/showthread.php?82805-BackupDB-Version-1-5-1-funktioniert-nicht-in-Contao-4-13-1

Die Zeile

$result .= "CREATE TABLE `" . $table . "` (\n " . implode(",\n ", $tablespec['TABLE_FIELDS']) . (count($tablespec['TABLE_CREATE_DEFINITIONS']) ? ',' : '') . "\n";
muss wahrscheinlich

  $result .= "CREATE TABLE `" . $table . "` (\n  " . implode(",\n  ", $tablespec['TABLE_FIELDS']) . (count($tablespec['TABLE_CREATE_DEFINITIONS'] ?? []) ? ',' : '') . "\n";

lauten, damit es kein Problem gibt, wenn $tablespec['TABLE_CREATE_DEFINITIONS'] nicht gesetzt ist.

@do-while
Copy link
Owner

Im Warmup werden einige Konstanten oder Texte nicht geladen.
Danke für Hinweis und Lösung!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants