Fix coding warnings

This commit is contained in:
bergware
2021-06-03 15:47:51 +02:00
parent 8859bea74e
commit 7d3536fc28
+2 -2
View File
@@ -56,8 +56,8 @@ foreach (glob('plugins/*', GLOB_ONLYDIR) as $plugin) {
}
// Get general variables
$name = @$_GET['name'];
$dir = @$_GET['dir'];
$name = $_GET['name'] ?? '';
$dir = $_GET['dir'] ?? '';
$path = substr(strtok($_SERVER['REQUEST_URI'],'?'),1);
// The current "task" is the first element of the path