diff options
author | Simon Rettberg | 2017-11-03 13:27:57 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-11-03 13:27:57 +0100 |
commit | e2af732497399ec6ccaf0da2b39d97348541915c (patch) | |
tree | 2c2715be09212aade073f29d9d50d8c0a58828e1 | |
parent | [dozmod] Refactor dmsd proxing, better error handling, less c & p (diff) | |
download | slx-admin-e2af732497399ec6ccaf0da2b39d97348541915c.tar.gz slx-admin-e2af732497399ec6ccaf0da2b39d97348541915c.tar.xz slx-admin-e2af732497399ec6ccaf0da2b39d97348541915c.zip |
[locations] Missing typecast for locationid
-rw-r--r-- | modules-available/locations/inc/location.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locations/inc/location.inc.php b/modules-available/locations/inc/location.inc.php index e3fd35b7..1dae4deb 100644 --- a/modules-available/locations/inc/location.inc.php +++ b/modules-available/locations/inc/location.inc.php @@ -66,7 +66,7 @@ class Location 'locationid' => (int)$node['locationid'], 'parentlocationid' => (int)$node['parentlocationid'], 'parents' => $parents, - 'children' => empty($node['children']) ? array() : array_map(function ($item) { return $item['locationid']; }, $node['children']), + 'children' => empty($node['children']) ? array() : array_map(function ($item) { return (int)$item['locationid']; }, $node['children']), 'locationname' => $node['locationname'], 'depth' => $depth, 'isleaf' => true, |