SyncUtils: allow property names ending with a dot

This commit is contained in:
Thomas Gelf 2018-01-26 13:49:16 +01:00
parent dba98b7c3f
commit 0056a90414

View File

@ -130,7 +130,7 @@ class SyncUtils
{ {
$res = array(); $res = array();
foreach ($vars as $p) { foreach ($vars as $p) {
if (false === ($pos = strpos($p, '.'))) { if (false === ($pos = strpos($p, '.')) || $pos === strlen($p) - 1) {
$res[] = $p; $res[] = $p;
} else { } else {
$res[] = substr($p, 0, $pos); $res[] = substr($p, 0, $pos);