Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions dashboard/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
}
// Create database...
if (isset($_GET['createDB'])) {
if ($_POST['go'] == 'create') {
// This will fix undefined index error
if (iseet($_POST['go']) && $_POST['go'] == 'create') {
$handle = fopen($databaseSchema, "r");
$createTable_events = fread($handle, filesize($databaseSchema));

Expand Down Expand Up @@ -405,7 +406,8 @@
// in case of some error, exit
if ($configphpError) {
print "<b>Configuration file \"config.php\" has errors, check above what's wrong. After solved, run setup again!</b><br>";
break;
// break statement is no longer allowed to use in php7 inside "if"
return false;
} else {
print "&nbsp;&nbsp; Config looks correct.<br>";
}
Expand Down Expand Up @@ -504,7 +506,8 @@
}
if ($extensionError) {
print "<b>Erro in PHP Extensions, check above what's wrong. After dependency solved, run setup again!</b><br>";
break;
// break statement is no longer allowed to use in php7 inside "if"
return false ;
}
print "<br />";

Expand Down