Code simplification
This commit is contained in:
parent
5f859d6b31
commit
e8bf5b2360
1 changed files with 4 additions and 10 deletions
|
@ -400,16 +400,10 @@ if ($vdef == '') return $value;
|
||||||
|
|
||||||
$key = strtok($vdef,'.');
|
$key = strtok($vdef,'.');
|
||||||
|
|
||||||
if (empty($array[$key]))
|
if (empty($array[$key])) $array[$key] = array();
|
||||||
{
|
|
||||||
$array[$key] = assign(array(),strtok(''),$value);
|
$array[$key] = assign($array[$key],strtok(''),$value);
|
||||||
return $array;
|
return $array;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$array[$key] = assign($array[$key],strtok(''),$value);
|
|
||||||
return $array;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue