summaryrefslogtreecommitdiffstats
path: root/modules-available/locations
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-03 13:27:57 +0100
committerSimon Rettberg2017-11-03 13:27:57 +0100
commite2af732497399ec6ccaf0da2b39d97348541915c (patch)
tree2c2715be09212aade073f29d9d50d8c0a58828e1 /modules-available/locations
parent[dozmod] Refactor dmsd proxing, better error handling, less c & p (diff)
downloadslx-admin-e2af732497399ec6ccaf0da2b39d97348541915c.tar.gz
slx-admin-e2af732497399ec6ccaf0da2b39d97348541915c.tar.xz
slx-admin-e2af732497399ec6ccaf0da2b39d97348541915c.zip
[locations] Missing typecast for locationid
Diffstat (limited to 'modules-available/locations')
-rw-r--r--modules-available/locations/inc/location.inc.php2
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,