Skip to content

Commit 905c3c7

Browse files
committed
fix: Fix to Uninitialized Variable
1 parent 8b013ae commit 905c3c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webfiori/framework/cli/commands/RunSQLQueryCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ private function queryFromFile($schema) {
219219
if (File::isFileExist($filePath)) {
220220
$file = new File($filePath);
221221
$file->read();
222-
222+
$mime = $file->getMIME();
223+
223224
if ($mime == 'application/sql' || $mime == 'application/x-sql') {
224225
break;
225226
} else {

0 commit comments

Comments
 (0)