fixed regex in cocal to include rooms like 2350|314.1

This commit is contained in:
David Thulke 2016-10-27 18:22:10 +02:00
parent 82cc302d01
commit 031d960881

View file

@ -215,7 +215,7 @@ if (isset($matrnr) && isset($passwd)) {
case 'LOCATION':
$matches = array();
if (preg_match('/^([0-9]+\|[0-9]+)/', $value, $matches)) {
if (preg_match('/^(([0-9]+\|[0-9]+)(\.[0-9]+)?)/', $value, $matches)) {
$room = $matches[1];
$address = get_address($db, $room);