We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a859ba0 + eb908d1 commit c2f341aCopy full SHA for c2f341a
system/Commands/Database/ShowTableInfo.php
@@ -125,15 +125,15 @@ public function run(array $params)
125
$limitRows = (int) ($params['limit-rows'] ?? 10);
126
$limitFieldValue = (int) ($params['limit-field-value'] ?? 15);
127
128
- if (! in_array($tableName, $tables, true)) {
+ while (! in_array($tableName, $tables, true)) {
129
$tableNameNo = CLI::promptByKey(
130
['Here is the list of your database tables:', 'Which table do you want to see?'],
131
$tables,
132
'required'
133
);
134
CLI::newLine();
135
136
- $tableName = $tables[$tableNameNo];
+ $tableName = $tables[$tableNameNo] ?? null;
137
}
138
139
if (array_key_exists('metadata', $params)) {
0 commit comments