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