fix koview - array was a string

This commit is contained in:
2021-06-08 13:47:33 +02:00
parent 6d1c661dcc
commit 1120945a93
2 changed files with 38 additions and 1 deletions

37
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,37 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
"port": 9222,
"webRoot": "${workspaceFolder}"
},
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9009,
"hostname": "0.0.0.0",
"stopOnEntry": true,
"log": true,
"pathMappings":
{
"/var/www/kt.wsl/html": "${workspaceRoot}"
}
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"hostname": "0.0.0.0",
"port": 9009
}
]
}

View File

@@ -53,7 +53,7 @@ $result = $link->query($query);
$participant = $result->fetch_all(MYSQLI_ASSOC);;
//var_dump($participant);
$encounter = '';
$encounter = [];
//Berechne, ab welche Begegnung es Teilnehmer gibt
$firstEncounter = isset($participant[0]['begegnung']) ? intval($participant[0]['begegnung']) : 1;