diff --git a/dashboard/setup.php b/dashboard/setup.php
index 1e056d4..6f65ae9 100644
--- a/dashboard/setup.php
+++ b/dashboard/setup.php
@@ -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));
@@ -405,7 +406,8 @@
// in case of some error, exit
if ($configphpError) {
print "Configuration file \"config.php\" has errors, check above what's wrong. After solved, run setup again!
";
- break;
+ // break statement is no longer allowed to use in php7 inside "if"
+ return false;
} else {
print " Config looks correct.
";
}
@@ -504,7 +506,8 @@
}
if ($extensionError) {
print "Erro in PHP Extensions, check above what's wrong. After dependency solved, run setup again!
";
- break;
+ // break statement is no longer allowed to use in php7 inside "if"
+ return false ;
}
print "
";