mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-27 07:31:40 +01:00
Added more checks
This commit is contained in:
@@ -91,7 +91,7 @@ class SettingsHelper {
|
||||
$val = exec('echo $' . $key);
|
||||
|
||||
if($val == "") {
|
||||
array_push($results, false);
|
||||
array_push($results, true);
|
||||
} else {
|
||||
array_push($results, false);
|
||||
}
|
||||
@@ -105,6 +105,18 @@ class SettingsHelper {
|
||||
array_push($results, false);
|
||||
}
|
||||
|
||||
if(env($key, false) == false) {
|
||||
array_push($results, true);
|
||||
} else {
|
||||
array_push($results, false);
|
||||
}
|
||||
|
||||
if(env(strtoupper($key), false) == false) {
|
||||
array_push($results, true);
|
||||
} else {
|
||||
array_push($results, false);
|
||||
}
|
||||
|
||||
if(in_array(false, $results)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user