From d39526201bedb7778c3da376c6a2885a69398e2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20V=C3=A1cha?=
Date: Sat, 5 Dec 2015 19:26:25 +0100
Subject: [PATCH] JsonFormatter - format register branches fix
---
src/UlozenkaLib/APIv3/Formatter/JsonFormatter.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/UlozenkaLib/APIv3/Formatter/JsonFormatter.php b/src/UlozenkaLib/APIv3/Formatter/JsonFormatter.php
index ab4e751..bca4735 100644
--- a/src/UlozenkaLib/APIv3/Formatter/JsonFormatter.php
+++ b/src/UlozenkaLib/APIv3/Formatter/JsonFormatter.php
@@ -309,7 +309,7 @@ private function proccessTransportServiceBranchesResponseData($dataObject)
$register = [];
$registerResponseJsonAttr = $this->getJsonAttr($dataObject, BranchAttr::RESPONSE_REGISTER);
if (!empty($registerResponseJsonAttr)) {
- foreach ($registerResponseJson as $singleRegister) {
+ foreach ($registerResponseJsonAttr as $singleRegister) {
// register branch specific information
$rbDestinationsJsonAttr = $this->getJsonAttr($singleRegister, BranchAttr::RB_DESTINATIONS);
if (!empty($rbDestinationsJsonAttr)) {