fix: [training] Small fix

pull/4313/head
iglocska 2019-03-14 14:13:42 +01:00
parent 3eafffad4e
commit 7bf2968785
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ class TrainingShell extends AppShell {
$response_data = json_decode($response->body, true);
$found = false;
foreach ($response_data as $existingOrg) {
if ($existingOrg['Organisation']['name'] == $org_data['name']) {
if ($existingOrg['Organisation']['name'] == $org_data['Organisation']['name']) {
return $existingOrg['Organisation']['id'];
}
}