mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
SyncUtils: allow property names ending with a dot
This commit is contained in:
parent
dba98b7c3f
commit
0056a90414
@ -130,7 +130,7 @@ class SyncUtils
|
||||
{
|
||||
$res = array();
|
||||
foreach ($vars as $p) {
|
||||
if (false === ($pos = strpos($p, '.'))) {
|
||||
if (false === ($pos = strpos($p, '.')) || $pos === strlen($p) - 1) {
|
||||
$res[] = $p;
|
||||
} else {
|
||||
$res[] = substr($p, 0, $pos);
|
||||
|
Loading…
x
Reference in New Issue
Block a user